Function physx_sys::PxRigidBody_setForceAndTorque_mut
source · pub unsafe extern "C" fn PxRigidBody_setForceAndTorque_mut(
self_: *mut PxRigidBody,
force: *const PxVec3,
torque: *const PxVec3,
mode: PxForceMode
)
Expand description
Sets the impulsive force and torque defined in the global coordinate frame to the actor.
::PxForceMode determines if the cleared torque is to be conventional or impulsive.
The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links.
It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.