Function physx_sys::PxRigidBody_setMaxLinearVelocity_mut
source · pub unsafe extern "C" fn PxRigidBody_setMaxLinearVelocity_mut(
self_: *mut PxRigidBody,
maxLinVel: f32
)
Expand description
Lets you set the maximum linear velocity permitted for this actor.
With this function, you can set the maximum linear velocity permitted for this rigid body. Higher angular velocities are clamped to this value.
Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded.
Default: PX_MAX_F32