Skip to content

NavMeshHit

Result information for navigation grid queries.

成员变量

NavMeshHit.distance : number
Calculates the distance between a test point and a point on a grid.
NavMeshHit.hit : boolean
Whether there is a collision point.
NavMeshHit.mask : number
The area to which the point of collision belongs.
NavMeshHit.normal : Vector3
The normal of the collision point.
NavMeshHit.position : Vector3
Collision position on the mesh.