Is there support to something like this: Keep camera from flying through a model while allowing it to be inside the models bounding box/sphere?
We have large ditch shaped models where there is valid reason for the camera to be inside the model but flying through the side walls can be confusing for users. My understanding is that collision is depth value based now. So only works for things that are in view.
Something like this and I noticed some parts can be below terrain (so we have to turn off terrain collision). So ideally we want the camera inside this but no through the ground or walls. I guess a lot of things at once.
I did some experiments with the camera underground after updating to the latest version and i think we likely have to use both.
I update once I have a good solution, I wanted to check out this approach as well cesium: camera-limiter. Do you happen to remember why it didn’t get merged?
I think this is ignored when going underground, there is a somewhat related “underground pick distance” (this would control whether you can orbit the camera around points underground) that isn’t yet part of the public API, you can see this discussion here: Camera behavior after update to version 1.70
We havent quite decided yet but the camera limiter approach seems the most promising.
For limiting zoom i looked at these but i am still confused.
Whats the unit of _maximumUndergroundPickDistance for example?
cameraController._maximumUndergroundPickDistance = 80000.0;
Looks like undergroundSurfaceHeight got removed again in the end, in favour of:
If someone needs an underground distance limiter, it might make more sense for them to place a large underground ellipsoid. Is this an example on how to that Cesium Sandcastle? And can you have collision with that ellipsoid then?