pub enum PhysicsMode {
Off,
Trace,
Live,
}Variants§
Off
Physics is disabled. Switching to this mode resets the accumulated physics tick state.
Trace
Host-synchronized physics. The host is expected to evaluate animation frames before stepping physics, so random seeks should reset/reseed the backend before continuing.
Live
Wall-clock physics. The host may keep stepping physics while animation sampling is paused, using the latest evaluated pose as the kinematic target.
Implementations§
Source§impl PhysicsMode
impl PhysicsMode
pub fn steps_backend(self) -> bool
Trait Implementations§
Source§impl Clone for PhysicsMode
impl Clone for PhysicsMode
Source§fn clone(&self) -> PhysicsMode
fn clone(&self) -> PhysicsMode
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 PhysicsMode
Source§impl Debug for PhysicsMode
impl Debug for PhysicsMode
Source§impl Default for PhysicsMode
impl Default for PhysicsMode
Source§fn default() -> PhysicsMode
fn default() -> PhysicsMode
Returns the “default value” for a type. Read more
impl Eq for PhysicsMode
Source§impl PartialEq for PhysicsMode
impl PartialEq for PhysicsMode
impl StructuralPartialEq for PhysicsMode
Auto Trait Implementations§
impl Freeze for PhysicsMode
impl RefUnwindSafe for PhysicsMode
impl Send for PhysicsMode
impl Sync for PhysicsMode
impl Unpin for PhysicsMode
impl UnsafeUnpin for PhysicsMode
impl UnwindSafe for PhysicsMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more