#[repr(i32)]pub enum ForceMode {
Force = 0,
Acceleration = 5,
Impulse = 1,
VelocityChange = 2,
}Variants§
Force = 0
Applies a continuous force to the rigidbody, using its mass
Acceleration = 5
Applies a continuous acceleration to the rigidbody, ignoring its mass
Impulse = 1
Applies an instant force impulse to the rigidbody, using its mass
VelocityChange = 2
Applies an instant velocity change to the rigidbody, ignoring its mass
Trait Implementations§
impl Copy for ForceMode
impl Eq for ForceMode
impl StructuralPartialEq for ForceMode
Auto Trait Implementations§
impl Freeze for ForceMode
impl RefUnwindSafe for ForceMode
impl Send for ForceMode
impl Sync for ForceMode
impl Unpin for ForceMode
impl UnsafeUnpin for ForceMode
impl UnwindSafe for ForceMode
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