Add ActiveEvents::CONTACT_FORCE_EVENTS for consistency with ActiveEvents::COLLISION_EVENTS

This commit is contained in:
Sébastien Crozet
2022-07-07 10:58:10 +02:00
parent 06ec9a0e76
commit 73788a21ab
4 changed files with 21 additions and 6 deletions

View File

@@ -291,8 +291,8 @@ impl PhysicsPipeline {
let co1 = &colliders[pair.collider1];
let co2 = &colliders[pair.collider2];
let threshold = co1
.contact_force_event_threshold
.min(co2.contact_force_event_threshold);
.effective_contact_force_event_threshold()
.min(co2.effective_contact_force_event_threshold());
if threshold < Real::MAX {
let total_magnitude = pair.total_impulse_magnitude() * inv_dt;