pub enum BodyType {
Static,
Dynamic,
Kinematic,
}Expand description
Defines how a rigid body participates in the physics simulation.
Variants§
Static
A static body that does not move under forces or collisions (e.g., walls, ground).
Dynamic
A dynamic body that is fully simulated by forces, gravity, and collisions.
Kinematic
A kinematic body that moves programmatically but is not affected by forces or gravity.
Trait Implementations§
impl Copy for BodyType
impl Eq for BodyType
impl StructuralPartialEq for BodyType
Auto Trait Implementations§
impl Freeze for BodyType
impl RefUnwindSafe for BodyType
impl Send for BodyType
impl Sync for BodyType
impl Unpin for BodyType
impl UnsafeUnpin for BodyType
impl UnwindSafe for BodyType
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