pub struct PhysicsMaterial {
pub static_friction: f32,
pub dynamic_friction: f32,
pub restitution: f32,
pub density: f32,
pub friction_combine: CombineMode,
pub restitution_combine: CombineMode,
}Fields§
§static_friction: f32§dynamic_friction: f32§restitution: f32§density: f32§friction_combine: CombineMode§restitution_combine: CombineModeImplementations§
Source§impl PhysicsMaterial
impl PhysicsMaterial
pub const RUBBER: Self
pub const ICE: Self
pub const METAL: Self
pub const WOOD: Self
pub const CONCRETE: Self
pub const GLASS: Self
pub const ASPHALT: Self
pub const SAND: Self
Sourcepub fn combine(a: &PhysicsMaterial, b: &PhysicsMaterial) -> CombinedMaterial
pub fn combine(a: &PhysicsMaterial, b: &PhysicsMaterial) -> CombinedMaterial
İki malzemenin temas özelliklerini birleştir
Trait Implementations§
Source§impl Clone for PhysicsMaterial
impl Clone for PhysicsMaterial
Source§fn clone(&self) -> PhysicsMaterial
fn clone(&self) -> PhysicsMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhysicsMaterial
impl Debug for PhysicsMaterial
Source§impl Default for PhysicsMaterial
impl Default for PhysicsMaterial
Source§impl<'de> Deserialize<'de> for PhysicsMaterial
impl<'de> Deserialize<'de> for PhysicsMaterial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PhysicsMaterial
impl PartialEq for PhysicsMaterial
Source§fn eq(&self, other: &PhysicsMaterial) -> bool
fn eq(&self, other: &PhysicsMaterial) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PhysicsMaterial
impl Serialize for PhysicsMaterial
impl Component for PhysicsMaterial
impl Copy for PhysicsMaterial
impl StructuralPartialEq for PhysicsMaterial
Auto Trait Implementations§
impl Freeze for PhysicsMaterial
impl RefUnwindSafe for PhysicsMaterial
impl Send for PhysicsMaterial
impl Sync for PhysicsMaterial
impl Unpin for PhysicsMaterial
impl UnsafeUnpin for PhysicsMaterial
impl UnwindSafe for PhysicsMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more