pub struct SpringState {
pub position: Wire,
pub velocity: Wire,
pub active: Wire,
}Expand description
A spring’s next state after four explicit semi-implicit Euler steps, with every constant a wire.
Fields§
§position: Wire§velocity: Wire§active: Wire0 once the spring is within both settle thresholds (scaled), 1 while it moves, and between them near the thresholds.
Trait Implementations§
Source§impl Clone for SpringState
impl Clone for SpringState
impl Copy for SpringState
Auto Trait Implementations§
impl Freeze for SpringState
impl RefUnwindSafe for SpringState
impl Send for SpringState
impl Sync for SpringState
impl Unpin for SpringState
impl UnsafeUnpin for SpringState
impl UnwindSafe for SpringState
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