pub struct SleepParams {
pub linear_threshold: f64,
pub angular_threshold: f64,
pub sleep_frames: u32,
}Expand description
Sleeping parameters used by SleepTest.
Fields§
§linear_threshold: f64Linear velocity threshold below which the body is considered dormant.
angular_threshold: f64Angular velocity threshold.
sleep_frames: u32Number of consecutive frames below threshold before the body sleeps.
Trait Implementations§
Source§impl Clone for SleepParams
impl Clone for SleepParams
Source§fn clone(&self) -> SleepParams
fn clone(&self) -> SleepParams
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 moreSource§impl Debug for SleepParams
impl Debug for SleepParams
Source§impl Default for SleepParams
impl Default for SleepParams
impl Copy for SleepParams
Auto Trait Implementations§
impl Freeze for SleepParams
impl RefUnwindSafe for SleepParams
impl Send for SleepParams
impl Sync for SleepParams
impl Unpin for SleepParams
impl UnsafeUnpin for SleepParams
impl UnwindSafe for SleepParams
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