pub trait PhysicsBody {
// Required methods
fn transform(&self) -> &Transform;
fn transform_mut(&mut self) -> &mut Transform;
fn mass(&self) -> Real;
// Provided methods
fn inv_mass(&self) -> Real { ... }
fn is_dynamic(&self) -> bool { ... }
fn is_static(&self) -> bool { ... }
}Expand description
Trait for objects that represent a physics body.
Required Methods§
Sourcefn transform_mut(&mut self) -> &mut Transform
fn transform_mut(&mut self) -> &mut Transform
Return a mutable reference to the transform.
Provided Methods§
Sourcefn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Whether this body participates in dynamics integration.