Function physx_sys::phys_PxCloneStatic
source · pub unsafe extern "C" fn phys_PxCloneStatic(
physicsSDK: *mut PxPhysics,
transform: *const PxTransform,
actor: *const PxRigidActor
) -> *mut PxRigidStatic
Expand description
create a static body by copying attributes from another rigid actor
The function clones a PxRigidDynamic or PxRigidStatic as a PxRigidStatic. A uniform scale is applied. The following properties are copied:
- shapes
- actor flags
- owner client and client behavior bits
- dominance group
The following are not copied and retain their default values:
- name
- joints or observers
- aggregate or scene membership
- user data
Transforms are not copied with bit-exact accuracy.
the newly-created rigid static