pub struct PhysicsWorldSettings {Show 15 fields
pub gravity: Vec3,
pub default_linear_damping: f32,
pub default_angular_damping: f32,
pub default_restitution: f32,
pub default_friction: f32,
pub solver_iterations: u32,
pub solver_velocity_iterations: u32,
pub baumgarte_factor: f32,
pub sleep_enabled: bool,
pub fixed_timestep: f32,
pub max_substeps: u32,
pub broadphase_type: BroadphaseType,
pub warm_starting: bool,
pub continuous_collision: bool,
pub split_impulses: bool,
}Fields§
§gravity: Vec3§default_linear_damping: f32§default_angular_damping: f32§default_restitution: f32§default_friction: f32§solver_iterations: u32§solver_velocity_iterations: u32§baumgarte_factor: f32§sleep_enabled: bool§fixed_timestep: f32§max_substeps: u32§broadphase_type: BroadphaseType§warm_starting: bool§continuous_collision: bool§split_impulses: boolTrait Implementations§
Source§impl Clone for PhysicsWorldSettings
impl Clone for PhysicsWorldSettings
Source§impl Debug for PhysicsWorldSettings
impl Debug for PhysicsWorldSettings
Auto Trait Implementations§
impl Freeze for PhysicsWorldSettings
impl RefUnwindSafe for PhysicsWorldSettings
impl Send for PhysicsWorldSettings
impl Sync for PhysicsWorldSettings
impl Unpin for PhysicsWorldSettings
impl UnsafeUnpin for PhysicsWorldSettings
impl UnwindSafe for PhysicsWorldSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.