pub struct PhysicsConfig { /* private fields */ }Expand description
Configuration parameters for the physics world simulation.
Implementations§
Source§impl PhysicsConfig
impl PhysicsConfig
pub fn get_gravity(&self) -> Vector2D
pub fn get_mut_gravity(&mut self) -> &mut Vector2D
pub fn set_gravity(&mut self, val: Vector2D) -> &mut Self
pub fn get_linear_damping(&self) -> f64
pub fn get_mut_linear_damping(&mut self) -> &mut f64
pub fn set_linear_damping(&mut self, val: f64) -> &mut Self
pub fn get_angular_damping(&self) -> f64
pub fn get_mut_angular_damping(&mut self) -> &mut f64
pub fn set_angular_damping(&mut self, val: f64) -> &mut Self
Trait Implementations§
Source§impl Clone for PhysicsConfig
impl Clone for PhysicsConfig
Source§fn clone(&self) -> PhysicsConfig
fn clone(&self) -> PhysicsConfig
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 moreimpl Copy for PhysicsConfig
Source§impl Debug for PhysicsConfig
impl Debug for PhysicsConfig
Source§impl Default for PhysicsConfig
Implements default configuration for PhysicsConfig.
impl Default for PhysicsConfig
Implements default configuration for PhysicsConfig.
Source§fn default() -> PhysicsConfig
fn default() -> PhysicsConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for PhysicsConfig
impl PartialEq for PhysicsConfig
Source§fn eq(&self, other: &PhysicsConfig) -> bool
fn eq(&self, other: &PhysicsConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PhysicsConfig
impl PartialOrd for PhysicsConfig
impl StructuralPartialEq for PhysicsConfig
Auto Trait Implementations§
impl Freeze for PhysicsConfig
impl RefUnwindSafe for PhysicsConfig
impl Send for PhysicsConfig
impl Sync for PhysicsConfig
impl Unpin for PhysicsConfig
impl UnsafeUnpin for PhysicsConfig
impl UnwindSafe for PhysicsConfig
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