Function physx_sys::phys_PxCloneDynamic
source · pub unsafe extern "C" fn phys_PxCloneDynamic(
physicsSDK: *mut PxPhysics,
transform: *const PxTransform,
body: *const PxRigidDynamic
) -> *mut PxRigidDynamic
Expand description
create a dynamic body by copying attributes from an existing body
The following properties are copied:
- shapes
- actor flags, rigidDynamic flags and rigidDynamic lock flags
- mass, moment of inertia, and center of mass frame
- linear and angular velocity
- linear and angular damping
- maximum linear velocity
- maximum angular velocity
- position and velocity solver iterations
- maximum depenetration velocity
- sleep threshold
- contact report threshold
- dominance group
- owner client and client behavior bits
- name pointer
- kinematic target
The following are not copied and retain their default values:
- name
- joints or observers
- aggregate or scene membership
- sleep timer
- user data
Transforms are not copied with bit-exact accuracy.
the newly-created rigid static