Intersects a ray with a height function by ray-marching then bisecting. Works for baked meshes and procedural terrain alike (used by TerrainPainter).
Normalised ray direction.
March step in metres; smaller catches thinner ridges.
The hit point (a new Vector3), or null.
null
Intersects a ray with a height function by ray-marching then bisecting. Works for baked meshes and procedural terrain alike (used by TerrainPainter).