Z coord in a mesh

Does anybody know how to get Z coord knowing X and Y for a terrain mes?

Thanks.

How about getting the z value of the collision position by dropping an object from the sky and colliding with the ground?

Take a look at the Raycast example. You can use a simple raycast vertically down onto your mesh to get the hit position.

1 Like

Muy problem is that muy player falla trough the mesh fue todo a bug. So, I m thinking a workaround removing player gravity and setting heigth manually. This must be done continuosly.

Thanks

I’ll study the example. I hope this is the a good way.

Thanks