Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be09add

Browse files
committedJan 2, 2025
feat(rapier): remove deprecated properties
BREAKING CHANGE: remove `erp` from physics options
1 parent 0ab2a6e commit be09add

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed
 

‎libs/rapier/src/lib/physics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const defaultOptions: NgtrPhysicsOptions = {
4141
minIslandSize: 128,
4242
maxCcdSubsteps: 1,
4343
contactNaturalFrequency: 30,
44-
erp: 0.8,
4544
lengthUnit: 1,
4645
colliders: 'cuboid',
4746
updateLoop: 'follow',

‎libs/rapier/src/lib/types.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,6 @@ export interface NgtrPhysicsOptions {
8989
*/
9090
contactNaturalFrequency: number;
9191

92-
/**
93-
* The Error Reduction Parameter in between 0 and 1, is the proportion of the positional error to be corrected at each time step.
94-
*
95-
* @defaultValue 0.8
96-
* @deprecated This is a noop. Use `contactNaturalFrequency` instead
97-
* @since 2.6.0 Will be removed in 3.0.0
98-
* @see {contactNaturalFrequency}
99-
* @see https://github.com/dimforge/rapier/pull/651 for more information about contactNaturalFrequency
100-
*/
101-
erp: number;
102-
10392
/**
10493
* The approximate size of most dynamic objects in the scene.
10594
*

0 commit comments

Comments
 (0)
Please sign in to comment.