sm.pathfinder.constrainPointToNavMesh
Constrain a point to nav mesh. Returns original point if no nav mesh is found.
Kind: Function
Environments: Game
Game
sm.pathfinder.constrainPointToNavMesh( world, point, abilities )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
world |
World | The world to look in. |
point |
Vec3 | The point. |
abilities (optional) |
table | Table of actor abilities { canWalk=boolean, canSwim=boolean }. Defaults to all abilities. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The modified point. |