Function physx_sys::phys_PxScaleRigidActor
source · pub unsafe extern "C" fn phys_PxScaleRigidActor(
actor: *mut PxRigidActor,
scale: f32,
scaleMassProps: bool
)
Expand description
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.