Function physx_sys::PxRigidActor_attachShape_mut
source · pub unsafe extern "C" fn PxRigidActor_attachShape_mut(
self_: *mut PxRigidActor,
shape: *mut PxShape
) -> bool
Expand description
Attach a shape to an actor
This call will increment the reference count of the shape.
Mass properties of dynamic rigid actors will not automatically be recomputed
to reflect the new mass distribution implied by the shape. Follow this call with a call to
the PhysX extensions method PxRigidBodyExt::updateMassAndInertia
to do that.
Attaching a triangle mesh, heightfield or plane geometry shape configured as eSIMULATION_SHAPE is not supported for non-kinematic PxRigidDynamic instances.
Sleeping: Does NOT wake the actor up automatically.
True if success.