pub trait PhysicsStateful {
type State;
// Required methods
fn save_state(&self) -> Self::State;
fn restore_state(&mut self, state: Self::State);
}Expand description
Trait for objects whose full physics state can be captured and restored.
Required Associated Types§
Required Methods§
Sourcefn save_state(&self) -> Self::State
fn save_state(&self) -> Self::State
Capture the current state.
Sourcefn restore_state(&mut self, state: Self::State)
fn restore_state(&mut self, state: Self::State)
Restore from a previously saved state.