Function physx_sys::phys_PxCreateKinematic
source · pub unsafe extern "C" fn phys_PxCreateKinematic(
sdk: *mut PxPhysics,
transform: *const PxTransform,
geometry: *const PxGeometry,
material: *mut PxMaterial,
density: f32,
shapeOffset: *const PxTransform
) -> *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