Skip to main content

evaluate_and_fracture_body

Function evaluate_and_fracture_body 

pub fn evaluate_and_fracture_body(
    body: &RigidBody3D,
    impact_impulse_ns: f32,
    contact_area_m2: f32,
    impact_normal_world: [f32; 3],
    tensile_strength: f32,
) -> Option<FractureOutcome3D>
Expand description

Evaluates whether an impact impulse impact_impulse_ns over contact_area_m2 fractures body, and if $\sigma = J / A \ge \text{tensile_strength}$, partitions the collider along the cleavage plane using evaluate_stress_cleavage_partition.