pub struct SleepConfig {
pub linear_threshold: Fix128,
pub angular_threshold: Fix128,
pub frames_to_sleep: u32,
}Expand description
Configuration for the sleeping system
Fields§
§linear_threshold: Fix128Linear velocity threshold below which a body is considered idle
angular_threshold: Fix128Angular velocity threshold below which a body is considered idle
frames_to_sleep: u32Number of consecutive idle frames before putting to sleep
Trait Implementations§
Source§impl Clone for SleepConfig
impl Clone for SleepConfig
impl Copy for SleepConfig
Source§impl Debug for SleepConfig
impl Debug for SleepConfig
Source§impl Default for SleepConfig
impl Default for SleepConfig
impl Eq for SleepConfig
Source§impl PartialEq for SleepConfig
impl PartialEq for SleepConfig
impl StructuralPartialEq for SleepConfig
Auto Trait Implementations§
impl Freeze for SleepConfig
impl RefUnwindSafe for SleepConfig
impl Send for SleepConfig
impl Sync for SleepConfig
impl Unpin for SleepConfig
impl UnsafeUnpin for SleepConfig
impl UnwindSafe for SleepConfig
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