@perplexdotgg/bounce 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bounce.js +2 -2
- package/docs/documentation.md +9 -0
- package/package.json +1 -1
package/build/bounce.js
CHANGED
|
@@ -11976,8 +11976,8 @@ function clipPolyVsPoly(out, inPolygonToClip, inClippingPolygon, inClippingPolyg
|
|
|
11976
11976
|
class ManifoldCache {
|
|
11977
11977
|
constructor(options) {
|
|
11978
11978
|
this.options = {
|
|
11979
|
-
maxContactManifolds:
|
|
11980
|
-
maxContactPairs:
|
|
11979
|
+
maxContactManifolds: Infinity,
|
|
11980
|
+
maxContactPairs: Infinity,
|
|
11981
11981
|
...options ?? {}
|
|
11982
11982
|
};
|
|
11983
11983
|
this.manifolds = new ContactManifoldPool(this.options.maxContactManifolds, 4);
|
package/docs/documentation.md
CHANGED
|
@@ -97,6 +97,15 @@ const world = new World({
|
|
|
97
97
|
maxLinearSpeed: 30.0,
|
|
98
98
|
maxAngularSpeed: 30.0,
|
|
99
99
|
isWarmStartingEnabled: true,
|
|
100
|
+
|
|
101
|
+
// contact manifold limits
|
|
102
|
+
// by default since 1.3.0, these are unlimited
|
|
103
|
+
// if set to a finite amount, an error is thrown when an allocation is attempted past the limit
|
|
104
|
+
// this may be desired during development to stay within a strict memory budget, for example
|
|
105
|
+
contactManifoldOptions: {
|
|
106
|
+
maxContactManifolds: Infinity,
|
|
107
|
+
maxContactPairs: Infinity,
|
|
108
|
+
},
|
|
100
109
|
});
|
|
101
110
|
```
|
|
102
111
|
|