C4 Engine
C4 Engine API Documentation

CharacterController::SetGroundCosine

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

void SetGroundCosine(float cosine);

Parameters
cosine The new minimum ground cosine.
Description
The SetGroundCosine function sets the minimum dot product between a surface normal and the up direction for which the surface is considered to be the ground to the value specified by the cosine parameter. 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::GetGroundCosine

CharacterController::GetGroundContact