C4 Engine
C4 Engine API Documentation

CharacterController::GetGroundCosine

Defined in:  C4Character.h
Returns the minimum ground cosine value.
Prototype

float GetGroundCosine(voidconst;

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

CharacterController::SetGroundCosine

CharacterController::GetGroundContact