pub unsafe extern "C" fn PxRigidDynamic_setLinearVelocity_mut(
    self_: *mut PxRigidDynamic,
    linVel: *const PxVec3,
    autowake: bool
)
Expand description

Sets the linear velocity of the actor.

Note that if you continuously set the velocity of an actor yourself, forces such as gravity or friction will not be able to manifest themselves, because forces directly influence only the velocity/momentum of an actor.

Default: (0.0, 0.0, 0.0)

Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero.

It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.