Enum physx::rigid_body::ForceMode
source · pub enum ForceMode {
Force,
Impulse,
VelocityChange,
Acceleration,
}
Expand description
Parameter to addForce() and addTorque() calls, determines the exact operation that is carried out.
Variants§
Force
parameter has unit of mass * length / time^2, i.e., a force
Impulse
parameter has unit of mass * length / time, i.e., force * time
VelocityChange
parameter has unit of length / time, i.e., the effect is mass independent: a velocity change.
Acceleration
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<PxForceMode> for PxForceMode
impl PartialEq<PxForceMode> 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 ==
.