Function physx_sys::phys_PxCreateKinematic_1
source · pub unsafe extern "C" fn phys_PxCreateKinematic_1(
sdk: *mut PxPhysics,
transform: *const PxTransform,
shape: *mut PxShape,
density: f32
) -> *mut PxRigidDynamic
Expand description
simple method to create a kinematic PxRigidDynamic actor with a single PxShape.
unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However,
kinematics of other geometry types may not participate in simulation collision and may be used only for
triggers or scene queries of moving objects under animation control. In this case the density parameter
will be ignored and the created shape will be set up as a scene query only shape (see [PxShapeFlag::eSCENE_QUERY_SHAPE
])
a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed