Function AIBase.GetFeetPosition

GetFeetPosition ()

Position of the base of the character.

Public
Vector3 GetFeetPosition ()

Position of the base of the character.

This is used for pathfinding as the character's pivot point is sometimes placed at the center of the character instead of near the feet. In a building with multiple floors the center of a character may in some scenarios be closer to the navmesh on the floor above than to the floor below which could cause an incorrect path to be calculated. To solve this the start point of the requested paths is always at the base of the character.