PxControllerManager_setPreventVerticalSlidingAgainstCeiling_mut

Function PxControllerManager_setPreventVerticalSlidingAgainstCeiling_mut 

Source
pub unsafe extern "C" fn PxControllerManager_setPreventVerticalSlidingAgainstCeiling_mut(
    self_: *mut PxControllerManager,
    flag: bool,
)
Expand description

Enables or disables vertical sliding against ceilings.

Geometry is seen as “ceilings” when the following condition is met:

dot product(contact normal, up direction) < 0.0f

This flag controls whether characters should slide vertically along the geometry in that case.

By default, sliding is allowed.