CharacterController::GetGroundCosine
Defined in:
Returns the minimum ground cosine value.
C4Character.h
Prototype
float GetGroundCosine(void) const;
Description
The GetGroundCosine
function returns the minimum dot product between a surface normal and the up direction for which the surface is considered to be the ground. This value is used by the CharacterController::GetGroundContact
when determining whether any geometry contact represents contact with the ground.The default ground cosine is 0.6875, and the up direction is always (0,0,1) in world space.
See Also