#[repr(i32)]pub enum PxForceMode {
Force = 0,
Impulse = 1,
VelocityChange = 2,
Acceleration = 3,
}Expand description
Parameter to addForce() and addTorque() calls, determines the exact operation that is carried out.
Variants§
Force = 0
parameter has unit of mass * length / time^2, i.e., a force
Impulse = 1
parameter has unit of mass * length / time, i.e., force * time
VelocityChange = 2
parameter has unit of length / time, i.e., the effect is mass independent: a velocity change.
Acceleration = 3
parameter has unit of length/ time^2, i.e., an acceleration. It gets treated just like a force except the mass is not divided out before integration.
Trait Implementations§
Source§impl Clone for PxForceMode
impl Clone for PxForceMode
Source§fn clone(&self) -> PxForceMode
fn clone(&self) -> PxForceMode
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 PxForceMode
Source§impl Debug for PxForceMode
impl Debug for PxForceMode
impl Eq for PxForceMode
Source§impl PartialEq for PxForceMode
impl PartialEq for PxForceMode
Source§fn eq(&self, other: &PxForceMode) -> bool
fn eq(&self, other: &PxForceMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PxForceMode
Auto Trait Implementations§
impl Freeze for PxForceMode
impl RefUnwindSafe for PxForceMode
impl Send for PxForceMode
impl Sync for PxForceMode
impl Unpin for PxForceMode
impl UnsafeUnpin for PxForceMode
impl UnwindSafe for PxForceMode
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