pub struct SimPolicy {
pub mode: SimulationMode,
pub gravity: [f32; 3],
pub drag: f32,
pub damping: f32,
pub noise: Option<NoisePolicy>,
pub forces: Vec<ForceBinding>,
pub lifetime: LifetimePolicy,
pub behaviors: Vec<BehaviorBlock>,
}Expand description
Simulation policy — per-frame update rules.
Fields§
§mode: SimulationMode§gravity: [f32; 3]§drag: f32§damping: f32§noise: Option<NoisePolicy>§forces: Vec<ForceBinding>§lifetime: LifetimePolicy§behaviors: Vec<BehaviorBlock>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimPolicy
impl<'de> Deserialize<'de> for SimPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimPolicy
impl RefUnwindSafe for SimPolicy
impl Send for SimPolicy
impl Sync for SimPolicy
impl Unpin for SimPolicy
impl UnsafeUnpin for SimPolicy
impl UnwindSafe for SimPolicy
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