pub struct ZonePhysicsDefaults {
pub gravity: [f32; 3],
pub friction: f32,
pub atmosphere_density: f32,
pub step_height: f32,
pub slope_limit_degrees: f32,
}Expand description
Per-zone physics overrides.
Fields§
§gravity: [f32; 3]§friction: f32§atmosphere_density: f32§step_height: f32§slope_limit_degrees: f32Trait Implementations§
Source§impl Clone for ZonePhysicsDefaults
impl Clone for ZonePhysicsDefaults
Source§fn clone(&self) -> ZonePhysicsDefaults
fn clone(&self) -> ZonePhysicsDefaults
Returns a duplicate of the value. Read more
1.0.0 · 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 ZonePhysicsDefaults
impl Debug for ZonePhysicsDefaults
Source§impl Default for ZonePhysicsDefaults
impl Default for ZonePhysicsDefaults
Source§impl<'de> Deserialize<'de> for ZonePhysicsDefaults
impl<'de> Deserialize<'de> for ZonePhysicsDefaults
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
Auto Trait Implementations§
impl Freeze for ZonePhysicsDefaults
impl RefUnwindSafe for ZonePhysicsDefaults
impl Send for ZonePhysicsDefaults
impl Sync for ZonePhysicsDefaults
impl Unpin for ZonePhysicsDefaults
impl UnsafeUnpin for ZonePhysicsDefaults
impl UnwindSafe for ZonePhysicsDefaults
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