Function physx_sys::PxRevoluteJoint_setDriveVelocity_mut
source · pub unsafe extern "C" fn PxRevoluteJoint_setDriveVelocity_mut(
self_: *mut PxRevoluteJoint,
velocity: f32,
autowake: bool
)
Expand description
set the target velocity for the drive model.
The motor will only be able to reach this velocity if the maxForce is sufficiently large. If the joint is spinning faster than this velocity, the motor will actually try to brake (see PxRevoluteJointFlag::eDRIVE_FREESPIN.)
The sign of this variable determines the rotation direction, with positive values going the same way as positive joint angles. Setting a very large target velocity may cause undesirable results.
Range: (-PX_MAX_F32, PX_MAX_F32) Default: 0.0