PxDistanceJoint_setContactDistance_mut

Function PxDistanceJoint_setContactDistance_mut 

Source
pub unsafe extern "C" fn PxDistanceJoint_setContactDistance_mut(
    self_: *mut PxDistanceJoint,
    contactDistance: f32,
)
Expand description

Set the contact distance for the min & max distance limits.

This is similar to the PxJointLimitParameters::contactDistance parameter for regular limits.

The two most common values are 0 and infinite. Infinite means the internal constraints are always created, resulting in the best simulation quality but slower performance. Zero means the internal constraints are only created when the limits are violated, resulting in best performance but worse simulation quality.

Default 0.0f Range [0, PX_MAX_F32)