Trait physx::shape::Shape [−][src]
Associated Types
Loading content...Provided methods
unsafe fn from_raw(
ptr: *mut PxShape,
user_data: Self::UserData
) -> Option<Owner<Self>>
[src]
ptr: *mut PxShape,
user_data: Self::UserData
) -> Option<Owner<Self>>
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.
fn get_user_data(&self) -> &Self::UserData
[src]
Get a reference to the user data.
fn get_user_data_mut(&mut self) -> &mut Self::UserData
[src]
Get a mutable reference to the user data.
fn set_simulation_filter_data(
&mut self,
this_layers: BitFlags<CollisionLayer>,
other_layers: BitFlags<CollisionLayer>,
word3: u32,
word4: u32
)
[src]
&mut self,
this_layers: BitFlags<CollisionLayer>,
other_layers: BitFlags<CollisionLayer>,
word3: u32,
word4: u32
)
Set the simulation (collision) filter of this shape
fn get_simulation_filter_data(&self) -> PxFilterData
[src]
Read the collision filter data of this shape
fn get_reference_count(&self) -> u32
[src]
Get the reference count
fn set_query_filter_data(&mut self, this_layers: BitFlags<CollisionLayer>)
[src]
Set the query filter of this shape
fn get_query_filter_data(&self) -> PxFilterData
[src]
Read the query filter data of this shape
fn get_nb_materials(&self) -> u16
[src]
Get the number of materials associated with this shape
fn get_materials(&self) -> Vec<&Self::Material>
[src]
Get a vector of all materials associated with this shape
fn get_materials_mut(&mut self) -> Vec<&mut Self::Material>
[src]
Get a mut vector of all materials associated with this shape
fn set_flag(&mut self, flag: ShapeFlag, enable: bool)
[src]
Toggle a flag on this shape