Skip to content

Commit e2c552e

Browse files
fix(rapier): bump contactForceEventThreshold default so not events get triggered in resting
1 parent ed0950b commit e2c552e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/rapier-docs/content/2.api/1.rigid-body/6.contact-force.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You need to set the `activeContactForce` prop to receive contact force events.
2525

2626
## `contactForceEventThreshold`
2727

28-
Because contact force events fire every simulation step, it's often useful to filter out low-force contacts. Set `contactForceEventThreshold` to only receive events when the total force magnitude exceeds the given value (defaults to `0`).
28+
Because contact force events fire every simulation step, it's often useful to filter out low-force contacts. Set `contactForceEventThreshold` to only receive events when the total force magnitude exceeds the given value (defaults to `5.0`).
2929

3030
```html
3131
<RigidBody

‎packages/rapier/src/components/colliders/BaseCollider.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const props = withDefaults(defineProps<Partial<ColliderProps>>(), {
2121
solverGroups: undefined,
2222
sensor: false,
2323
activeContactForce: false,
24-
contactForceEventThreshold: 0,
24+
contactForceEventThreshold: 5.0,
2525
})
2626
2727
const { world } = useRapierContext()

0 commit comments

Comments
 (0)