CharacterController::SetGroundCosine
Defined in:
Sets the minimum ground cosine value.
C4Character.h
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