I have a 3D terrain model (not Unity terrain)
How can I calculate the height in a specific point of model ?
Thank you.
I have a 3D terrain model (not Unity terrain)
How can I calculate the height in a specific point of model ?
Thank you.
Raycast is probably your best bet if the terrain has a collider. The ray will give you a hit coordinate on the mesh.
That’s sounds like something I need, how would that work? Sorry for the silly ?, but I’m not too familiar with raycasting.
Just check the docs for Physics.Raycast(). If that doesn’t tell you what you need to know, search the forums for ‘raycast’ and you should find some examples.