Function physx_sys::PxConstraintConnector_onComShift_mut
source · pub unsafe extern "C" fn PxConstraintConnector_onComShift_mut(
self_: *mut PxConstraintConnector,
actor: u32
)
Expand description
Center-of-mass shift callback
This function is called by the SDK when the CoM of one of the actors is moved. Since the API specifies constraint positions relative to actors, and the constraint shader functions are supplied with coordinates relative to bodies, some synchronization is usually required when the application moves an object’s center of mass.