A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
NavmeshClamp Class Reference

Attach to any GameObject and the object will be clamped to the navmesh. More...

+ Inheritance diagram for NavmeshClamp:
+ Collaboration diagram for NavmeshClamp:

Private Member Functions

void LateUpdate ()
 

Private Attributes

Node prevNode
 
Vector3 prevPos
 

Detailed Description

Attach to any GameObject and the object will be clamped to the navmesh.

If a GameObject has this component attached, one or more graph linecasts will be carried out every frame to ensure that the object does not leave the navmesh area.
It can be used with GridGraphs, but Navmesh based ones are prefered.

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

The documentation for this class was generated from the following file: