Get 'Y' value at know 'X' and 'Z' coords?
:) Hi, excuse my english. I have a plane mesh simulating an ocean. Each vertex 'X' and 'Z' coords are static, but 'Y' (wave height) is dynamic. I know how to find 'Y' as a function of the vertex index [0,1,2,3,...]: WaveHeight = planeMesh.vertices[VertexIndex].y; But I need to find 'Y' as a function of know 'X' and 'Z' coords, without knowing the vertex index. I think Raycast isn´t useful because I cant put a dynamic collider in the plane mesh. Any idea? :) Thanks!
Your answer
Follow this Question
Related Questions
[SOLVED] Remove Vector3 Array step by step when GameObject spawned 1 Answer
How do I make .txt files -> arrays -> Vector3 ? (js) 0 Answers
Texture2D to Plane: Array Index is Out of Range 1 Answer
How to teleport an object to 1 of 8 possible locations on collision? 1 Answer
How do i calculate the outer bounds??? 0 Answers