pub unsafe extern "C" fn PxGearJoint_setHinges_mut(
    self_: *mut PxGearJoint,
    hinge0: *const PxBase,
    hinge1: *const PxBase
) -> bool
Expand description

Set the hinge/revolute joints connected by the gear joint.

The passed joints can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. The joints must define degrees of freedom around the twist axis. They cannot be null.

Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The gear joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the gear meshes.

Calling this function resets the internal positional error correction term.

true if success