pub trait Shape: Class<PxShape> + UserData {
    type Material: Material;

    unsafe fn from_raw(
        ptr: *mut PxShape,
        user_data: Self::UserData
    ) -> Option<Owner<Self>> { ... } fn get_user_data(&self) -> &Self::UserData { ... } fn get_user_data_mut(&mut self) -> &mut Self::UserData { ... } fn set_simulation_filter_data(
        &mut self,
        this_layers: BitFlags<CollisionLayer>,
        other_layers: BitFlags<CollisionLayer>,
        word3: u32,
        word4: u32
    ) { ... } fn get_simulation_filter_data(&self) -> PxFilterData { ... } fn get_reference_count(&self) -> u32 { ... } fn set_query_filter_data(&mut self, this_layers: BitFlags<CollisionLayer>) { ... } fn get_query_filter_data(&self) -> PxFilterData { ... } fn get_nb_materials(&self) -> u16 { ... } fn get_materials(&self) -> Vec<&Self::Material> { ... } fn get_materials_mut(&mut self) -> Vec<&mut Self::Material> { ... } fn set_flag(&mut self, flag: ShapeFlag, enable: bool) { ... } }

Required Associated Types

Provided Methods

Safety

Owner’s own the pointer they wrap, using the pointer after dropping the Owner, or creating multiple Owners from the same pointer will cause UB. Use into_ptr to retrieve the pointer and consume the Owner without dropping the pointee.

Get a reference to the user data.

Get a mutable reference to the user data.

Set the simulation (collision) filter of this shape

Read the collision filter data of this shape

Get the reference count

Set the query filter of this shape

Read the query filter data of this shape

Get the number of materials associated with this shape

Get a vector of all materials associated with this shape

Get a mut vector of all materials associated with this shape

Toggle a flag on this shape

Implementors