pub unsafe extern "C" fn PxShape_getMaterials(
    self_: *const PxShape,
    userBuffer: *mut *mut PxMaterial,
    bufferSize: u32,
    startIndex: u32
) -> u32
Expand description

Retrieve all the material pointers associated with the shape.

You can retrieve the number of material pointers by calling getNbMaterials

Note: The returned data may contain invalid pointers if you release materials using PxMaterial::release.

Number of material pointers written to the buffer.