Information about the vertical projection of a given position onto the terrain

Constructors

Properties

distance: number

vertical distance of the point to the terrain, negative if below

grid: Vector2

the grid coordinates of the quad the face belongs to

index: number

the index of the face the position is inside

normal: Vector3

the normal of the face of the terrain under the point in world coordinates

position: Vector3

the position of the point vertically projected on the terrain in world coordinates

positionFace: Vector3

the position in face coordinates