Function AIBase.RaycastPosition
RaycastPosition
(Vector3 position, float lastElevation)
Checks if the character is grounded and prevents ground penetration.
Protected
Vector3 RaycastPosition (
position | Position of the character in the world. |
|
float | lastElevation | Elevation coordinate before the agent was moved. This is along the 'up' axis of the movementPlane. |
Checks if the character is grounded and prevents ground penetration.
Sets verticalVelocity to zero if the character is grounded.
Return
The new position of the character.