PxScaleRigidActor
Defined in include/extensions/PxSimpleFactory.h
-
void PxScaleRigidActor(PxRigidActor &actor, PxReal scale, bool scaleMassProps = true)
scale a rigid actor by a uniform scale
The geometry and relative positions of the actor are multiplied by the given scale value. If the actor is a rigid body or an articulation link and the scaleMassProps value is true, the mass properties are scaled assuming the density is constant: the center of mass is linearly scaled, the mass is multiplied by the cube of the scale, and the inertia tensor by the fifth power of the scale.
- Parameters
actor – [in] a rigid actor
scale – [in] the scale by which to multiply the actor. Must be >0.
scaleMassProps – [in] whether to scale the mass properties