When terrain is added, the viewpoint can get through the ground. Is there any plan on collision detection?
Thanks,
Shawn
CameraController.prototype.move()
CameraController.prototype.rotate()
I'm finding the way to get the height map.
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/jQVFIOkk-K4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I almost solved this issue, but not perfect.I get ground height by sampleTerrain() in rotate() and move() call. And compare to current camera height. If camera get into ground then let it out. sampleTerrain() is an async function, cannot get ground height real-time. The result is, camera gets into ground firstly, user can see the black starry sky. Then jump out ground about 0.1 second later. If I keep camera height 30 meters up to ground, and move camera not very fast, camera will not get into ground finally.
Thanks,
Shawn