pub struct ImpactRecord {
pub collider1: ColliderHandle,
pub collider2: ColliderHandle,
pub point: Vec3,
pub normal: Vec3,
pub peak_normal_impulse: f32,
pub approach_speed: f32,
}Expand description
One canonical generational collider pair’s strongest accepted point solve in
the latest outer step, including contacts absent from the final cache.
Read these through the dimensional world’s impacts method after opting
in with set_impact_settings.
Fields§
§collider1: ColliderHandle§collider2: ColliderHandle§point: Vec3World-space constraint creation position, represented as Vec3 in 2D/3D.
normal: Vec3Unit world normal from collider1 toward collider2.
peak_normal_impulse: f32Maximum over points, iterations and substeps of
max(0, accumulated_normal_impulse - initial_warm_start_impulse).
Neither a sum over points/substeps nor total energy/acoustic loudness.
Solver iteration overshoot can affect this peak; tangential, rolling,
joint, positional and cached warm-start replay impulses are excluded.
approach_speed: f32Minimum of the before-force and before-warm-start approach speeds at this record’s selected point. Useful when authoring thresholds.
Trait Implementations§
Source§impl Clone for ImpactRecord
impl Clone for ImpactRecord
Source§fn clone(&self) -> ImpactRecord
fn clone(&self) -> ImpactRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more