Struct physx::material::PxMaterial
source · #[repr(transparent)]pub struct PxMaterial<U> { /* private fields */ }
Expand description
A new type wrapper for PxMaterial. Parametrized by its user data type.
Trait Implementations§
source§impl<P, U> Class<P> for PxMaterial<U>where
PxMaterial: Class<P>,
impl<P, U> Class<P> for PxMaterial<U>where PxMaterial: Class<P>,
source§fn as_ptr(&self) -> *const P
fn as_ptr(&self) -> *const P
Returns a raw const pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§fn as_mut_ptr(&mut self) -> *mut P
fn as_mut_ptr(&mut self) -> *mut P
Returns a raw mut pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§impl<U> Drop for PxMaterial<U>
impl<U> Drop for PxMaterial<U>
source§impl<M> Material for PxMaterial<M>
impl<M> Material for PxMaterial<M>
source§unsafe fn from_raw(
ptr: *mut PxMaterial,
user_data: Self::UserData
) -> Option<Owner<Self>>
unsafe fn from_raw( ptr: *mut PxMaterial, user_data: Self::UserData ) -> Option<Owner<Self>>
Safety Read more
source§fn get_user_data(&self) -> &Self::UserData
fn get_user_data(&self) -> &Self::UserData
Get a reference to the user data.
source§fn get_user_data_mut(&mut self) -> &mut Self::UserData
fn get_user_data_mut(&mut self) -> &mut Self::UserData
Get a mutable reference to the user data.
source§fn set_dynamic_friction(&mut self, coefficient: f32)
fn set_dynamic_friction(&mut self, coefficient: f32)
Set the dynamic friction. Read more
source§fn get_dynamic_friction(&self) -> f32
fn get_dynamic_friction(&self) -> f32
Get the dynamic friction.
source§fn set_static_friction(&mut self, coefficient: f32)
fn set_static_friction(&mut self, coefficient: f32)
Set the static friction. Read more
source§fn get_static_friction(&self) -> f32
fn get_static_friction(&self) -> f32
Get the static frction.
source§fn set_restitution(&mut self, restitution: f32)
fn set_restitution(&mut self, restitution: f32)
Set the restitution. Read more
source§fn get_restitution(&self) -> f32
fn get_restitution(&self) -> f32
Get the restitution.
source§fn set_flag(&mut self, flag: MaterialFlag, set: bool)
fn set_flag(&mut self, flag: MaterialFlag, set: bool)
Set a material flag.
source§fn set_flags(&mut self, flags: MaterialFlags)
fn set_flags(&mut self, flags: MaterialFlags)
Set all the material flags.
source§fn get_flags(&self) -> MaterialFlags
fn get_flags(&self) -> MaterialFlags
Get the material flags.
source§fn set_friction_combined_mode(&mut self, combine_mode: CombineMode)
fn set_friction_combined_mode(&mut self, combine_mode: CombineMode)
Set the friction combine mode.
source§fn get_friction_combine_mode(&self) -> CombineMode
fn get_friction_combine_mode(&self) -> CombineMode
Get the friction combine mode.
source§fn set_restitution_combine_mode(&mut self, combine_mode: CombineMode)
fn set_restitution_combine_mode(&mut self, combine_mode: CombineMode)
Set the restitution combine mode.
source§fn get_restitution_combine_mode(&self) -> CombineMode
fn get_restitution_combine_mode(&self) -> CombineMode
Get the restitution combine mode.
impl<U: Send> Send for PxMaterial<U>
impl<U: Sync> Sync for PxMaterial<U>
Auto Trait Implementations§
impl<U> RefUnwindSafe for PxMaterial<U>where U: RefUnwindSafe,
impl<U> Unpin for PxMaterial<U>where U: Unpin,
impl<U> UnwindSafe for PxMaterial<U>where U: UnwindSafe,
Blanket Implementations§
source§impl<T> Base for Twhere
T: Class<PxBase>,
impl<T> Base for Twhere T: Class<PxBase>,
source§fn get_concrete_type_name(&self) -> Option<&str>
fn get_concrete_type_name(&self) -> Option<&str>
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
source§fn get_concrete_type(&self) -> ConcreteType
fn get_concrete_type(&self) -> ConcreteType
Returns an enumerated value identifying the type. Read more
source§fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
Set or unset the specified flag on this object.
source§fn set_base_flags(&mut self, in_flags: BaseFlags)
fn set_base_flags(&mut self, in_flags: BaseFlags)
Set the BaseFlags of this object. Note that replaces all flags currently
on the object. Use
set_base_flag
to set individual flags.source§fn get_base_flags(&self) -> BaseFlags
fn get_base_flags(&self) -> BaseFlags
Read the BaseFlags of this object
source§fn is_releasable(&self) -> bool
fn is_releasable(&self) -> bool
Returns true if this object can be released, i.e., it is not subordinate.
source§impl<T> RefCounted for Twhere
T: Class<PxRefCounted>,
impl<T> RefCounted for Twhere T: Class<PxRefCounted>,
source§fn release(&mut self)
fn release(&mut self)
Decrements the reference count of the object and releases it if the new reference count is zero.
source§fn get_reference_count(&self) -> u32
fn get_reference_count(&self) -> u32
Returns the reference count of the object. Read more
source§fn acquire_reference(&mut self)
fn acquire_reference(&mut self)
Acquires a counted reference to this object. Read more