Enum physx_sys::PxForceMode
source · #[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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PxForceMode
impl Debug for PxForceMode
source§impl PartialEq for PxForceMode
impl PartialEq for PxForceMode
source§fn eq(&self, other: &PxForceMode) -> bool
fn eq(&self, other: &PxForceMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PxForceMode
impl Eq for PxForceMode
impl StructuralEq for PxForceMode
impl StructuralPartialEq for PxForceMode
Auto Trait Implementations§
impl RefUnwindSafe for PxForceMode
impl Send for PxForceMode
impl Sync for PxForceMode
impl Unpin 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