Function physx_sys::PxArticulationLink_getLinearVelocity
source · pub unsafe extern "C" fn PxArticulationLink_getLinearVelocity(
self_: *const PxArticulationLink
) -> PxVec3
Expand description
Get the linear velocity of the link.
- The linear velocity is with respect to the link’s center of mass and not the actor frame origin.
- For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query.
- When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity.
The linear velocity of the link.
This call is not allowed while the simulation is running except in a split simulation during PxScene::collide
and up to #PxScene::advance(),
and in PxContactModifyCallback or in contact report callbacks.