pub struct ImpactSettings {
pub capacity: usize,
pub min_normal_impulse: f32,
pub min_approach_speed: f32,
}Expand description
Observation thresholds only; these never change solver tolerances or impulses.
The dimensional PhysicsWorld::set_impact_settings method documents an
example using inferred defaults.
Fields§
§capacity: usizeFirst qualifying pairs in substep/solver order are retained, up to this bound (0..=MAX_IMPACT_RECORDS). Zero records still counts rejections.
min_normal_impulse: f32Strict lower bound on the peak newly solved point normal impulse. Finite and nonnegative; zero accepts any positive qualifying impulse.
min_approach_speed: f32Strict lower bound on approach speed, finite and positive. Approach must exceed this both before substep forces/gravity/damping/integration and at contact creation before warm start. This excludes ordinary resting support, even with warm start off. Choose above expected solver jitter.
Trait Implementations§
Source§impl Clone for ImpactSettings
impl Clone for ImpactSettings
Source§fn clone(&self) -> ImpactSettings
fn clone(&self) -> ImpactSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 ImpactSettings
impl Debug for ImpactSettings
Source§impl Default for ImpactSettings
impl Default for ImpactSettings
Source§fn default() -> ImpactSettings
fn default() -> ImpactSettings
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImpactSettings
impl PartialEq for ImpactSettings
impl Copy for ImpactSettings
impl StructuralPartialEq for ImpactSettings
Auto Trait Implementations§
impl Freeze for ImpactSettings
impl RefUnwindSafe for ImpactSettings
impl Send for ImpactSettings
impl Sync for ImpactSettings
impl Unpin for ImpactSettings
impl UnwindSafe for ImpactSettings
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