pub enum VelocityPolicy {
Preserve,
Clear,
}Expand description
Linear and angular velocity handling during a checked teleport.
See d2::RigidBody::try_teleport or d3::RigidBody::try_teleport.
Variants§
Preserve
Retain the stored world-space center-of-mass and angular velocities. This does not preserve angular momentum when the orientation changes.
Clear
Set both stored velocities to zero.
Trait Implementations§
Source§impl Clone for VelocityPolicy
impl Clone for VelocityPolicy
Source§fn clone(&self) -> VelocityPolicy
fn clone(&self) -> VelocityPolicy
Returns a duplicate 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 VelocityPolicy
impl Debug for VelocityPolicy
Source§impl PartialEq for VelocityPolicy
impl PartialEq for VelocityPolicy
impl Copy for VelocityPolicy
impl Eq for VelocityPolicy
impl StructuralPartialEq for VelocityPolicy
Auto Trait Implementations§
impl Freeze for VelocityPolicy
impl RefUnwindSafe for VelocityPolicy
impl Send for VelocityPolicy
impl Sync for VelocityPolicy
impl Unpin for VelocityPolicy
impl UnwindSafe for VelocityPolicy
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