Hi !
I'd like to check for collisions in a "manual" way and decide what should happen to my camera when that happens.
What would the easiest way be to check say an ellipse (or circle) against a height map ?
Secondary, same question but with an arbitrary mesh.
Simple collision against heightmap
You can take a look at:
Tutorial #12. Take a specific look at the part that says
Tutorial #12. Take a specific look at the part that says
. Good luck!If you need access to the terrain data you can also do this directly via the following code fragment.
rogerborg wrote:Answering a noob question is like having sex with a midget: there's a wonderfully satisfying sensation of being a giant.
There is a function in the terrain scenenode that gives you the height on a specific (x,z) position. That should help you.
Dustbin::Games on the web: https://www.dustbin-online.de/
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames