@absolutejs/rapier3d 0.13.0 → 0.14.1
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/README.md +46 -0
- package/absolutejs/README.md +46 -0
- package/dist/build-info.mjs +1 -1
- package/dist/provenance.json +4 -4
- package/dist/rapier.mjs +1 -1
- package/dist/types/pipeline/step_profile.d.ts +2 -1
- package/dist/types/pipeline/world.d.ts +20 -0
- package/dist/types/rapier_wasm3d.d.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -375,3 +375,49 @@ This calculation runs when mass properties are recomputed. It is not a render
|
|
|
375
375
|
optimization: recompute after geometry/mass changes, not unnecessarily every
|
|
376
376
|
frame. Qualification records, measured cost and limits are retained under
|
|
377
377
|
`absolutejs/research/inertia-reconstruction/`.
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## Matched isolated-body rotation and observations (0.14)
|
|
381
|
+
|
|
382
|
+
An isolated, awake dynamic body with gyroscopic forces enabled now uses a
|
|
383
|
+
bounded implicit midpoint angular update with its matching Cayley attitude.
|
|
384
|
+
This substantially reduces free-flight angular energy and world-momentum drift.
|
|
385
|
+
The path requires physical stored inertia, unlocked angular axes, zero external
|
|
386
|
+
torque and angular damping, and ordinary rotation limits. Contact-connected,
|
|
387
|
+
jointed, articulated, soft/FEM and fast-rotation bodies retain their existing
|
|
388
|
+
solver path. This does not correct coupled angular/contact integration or the
|
|
389
|
+
remaining articulated COM-transport defect.
|
|
390
|
+
|
|
391
|
+
A rejected update does not partially mutate state. Nonphysical stored moments,
|
|
392
|
+
rotation limits and failed/invalid solves are observed explicitly; the existing
|
|
393
|
+
correction/cap ordering applies for the rest of that island solve. The next solve
|
|
394
|
+
re-evaluates eligibility. No energy or momentum clamp is introduced.
|
|
395
|
+
|
|
396
|
+
With `world.profilerEnabled = true`, `world.freeRotationStats()` returns owned
|
|
397
|
+
counts (`acceptedSteps`, `nonphysicalInertiaRejections`, `rotationLimitRejections`,
|
|
398
|
+
`invalidOrFailedSolves`), maximum Newton updates, and maximum accepted residual
|
|
399
|
+
in radians/second. It returns null before a completed profiled step, after
|
|
400
|
+
restoration, while profiling is disabled or after toggling it. Counts include
|
|
401
|
+
solver substeps and CCD passes; zero acceptance does not establish conservation.
|
|
402
|
+
The bounded `createPhysicsStepProfiler` includes these observations as each
|
|
403
|
+
sample's `native.freeRotation`, with the same sample and ownership limits.
|
|
404
|
+
|
|
405
|
+
The 96-case native matrix reduces worst relative angular-energy drift from
|
|
406
|
+
3.2% to 0.00026%; 542 excluded/rejected control states match the previous release
|
|
407
|
+
exactly. On a synthetic 32-body CPU/WASM workload the median paired additional
|
|
408
|
+
cost is approximately 0.7 microseconds per body/substep (2.9x batch ratio).
|
|
409
|
+
These are fixture measurements, not game-wide guarantees or hardware FPS.
|
|
410
|
+
Admission, numerical/storage limits, actual-engine tests, failed assumptions and
|
|
411
|
+
cost records are preserved in `absolutejs/research/rigid-midpoint-engine`.
|
|
412
|
+
|
|
413
|
+
### Floating-root center-of-mass coordinates (0.14.1)
|
|
414
|
+
|
|
415
|
+
Articulation root linear velocity is measured at its center of mass. For an
|
|
416
|
+
object whose authored origin differs from its mass center, time integration
|
|
417
|
+
must rotate the local COM offset while advancing that physical center. The root
|
|
418
|
+
origin update includes `R_old * localCom - R_new * localCom`; otherwise moving
|
|
419
|
+
an object's modeling origin changes its physical trajectory. Fixed roots and
|
|
420
|
+
zero-offset roots retain their existing arithmetic. This correction does not
|
|
421
|
+
replace the articulation's angular integrator or eliminate remaining aggregate
|
|
422
|
+
momentum/energy drift. Coordinate-covariance, movable-joint and snapshot replay
|
|
423
|
+
regressions are recorded in `absolutejs/research/rigid-assembly`.
|
package/absolutejs/README.md
CHANGED
|
@@ -375,3 +375,49 @@ This calculation runs when mass properties are recomputed. It is not a render
|
|
|
375
375
|
optimization: recompute after geometry/mass changes, not unnecessarily every
|
|
376
376
|
frame. Qualification records, measured cost and limits are retained under
|
|
377
377
|
`absolutejs/research/inertia-reconstruction/`.
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## Matched isolated-body rotation and observations (0.14)
|
|
381
|
+
|
|
382
|
+
An isolated, awake dynamic body with gyroscopic forces enabled now uses a
|
|
383
|
+
bounded implicit midpoint angular update with its matching Cayley attitude.
|
|
384
|
+
This substantially reduces free-flight angular energy and world-momentum drift.
|
|
385
|
+
The path requires physical stored inertia, unlocked angular axes, zero external
|
|
386
|
+
torque and angular damping, and ordinary rotation limits. Contact-connected,
|
|
387
|
+
jointed, articulated, soft/FEM and fast-rotation bodies retain their existing
|
|
388
|
+
solver path. This does not correct coupled angular/contact integration or the
|
|
389
|
+
remaining articulated COM-transport defect.
|
|
390
|
+
|
|
391
|
+
A rejected update does not partially mutate state. Nonphysical stored moments,
|
|
392
|
+
rotation limits and failed/invalid solves are observed explicitly; the existing
|
|
393
|
+
correction/cap ordering applies for the rest of that island solve. The next solve
|
|
394
|
+
re-evaluates eligibility. No energy or momentum clamp is introduced.
|
|
395
|
+
|
|
396
|
+
With `world.profilerEnabled = true`, `world.freeRotationStats()` returns owned
|
|
397
|
+
counts (`acceptedSteps`, `nonphysicalInertiaRejections`, `rotationLimitRejections`,
|
|
398
|
+
`invalidOrFailedSolves`), maximum Newton updates, and maximum accepted residual
|
|
399
|
+
in radians/second. It returns null before a completed profiled step, after
|
|
400
|
+
restoration, while profiling is disabled or after toggling it. Counts include
|
|
401
|
+
solver substeps and CCD passes; zero acceptance does not establish conservation.
|
|
402
|
+
The bounded `createPhysicsStepProfiler` includes these observations as each
|
|
403
|
+
sample's `native.freeRotation`, with the same sample and ownership limits.
|
|
404
|
+
|
|
405
|
+
The 96-case native matrix reduces worst relative angular-energy drift from
|
|
406
|
+
3.2% to 0.00026%; 542 excluded/rejected control states match the previous release
|
|
407
|
+
exactly. On a synthetic 32-body CPU/WASM workload the median paired additional
|
|
408
|
+
cost is approximately 0.7 microseconds per body/substep (2.9x batch ratio).
|
|
409
|
+
These are fixture measurements, not game-wide guarantees or hardware FPS.
|
|
410
|
+
Admission, numerical/storage limits, actual-engine tests, failed assumptions and
|
|
411
|
+
cost records are preserved in `absolutejs/research/rigid-midpoint-engine`.
|
|
412
|
+
|
|
413
|
+
### Floating-root center-of-mass coordinates (0.14.1)
|
|
414
|
+
|
|
415
|
+
Articulation root linear velocity is measured at its center of mass. For an
|
|
416
|
+
object whose authored origin differs from its mass center, time integration
|
|
417
|
+
must rotate the local COM offset while advancing that physical center. The root
|
|
418
|
+
origin update includes `R_old * localCom - R_new * localCom`; otherwise moving
|
|
419
|
+
an object's modeling origin changes its physical trajectory. Fixed roots and
|
|
420
|
+
zero-offset roots retain their existing arithmetic. This correction does not
|
|
421
|
+
replace the articulation's angular integrator or eliminate remaining aggregate
|
|
422
|
+
momentum/energy drift. Coordinate-covariance, movable-joint and snapshot replay
|
|
423
|
+
regressions are recorded in `absolutejs/research/rigid-assembly`.
|
package/dist/build-info.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.freeze({schemaVersion:1,scope:"package",packageName:"@absolutejs/rapier3d",packageVersion:"0.
|
|
1
|
+
var e=Object.freeze({schemaVersion:1,scope:"package",packageName:"@absolutejs/rapier3d",packageVersion:"0.14.1",qualifiedKernelRelease:"0.14.1",upstream:"b716d375efc0201003f0cd9ef7168eee0b62c177",engine:"0.36.0",collisionLibraryVersion:"0.31.1",collisionSource:"git+https://github.com/absolutejs/parry?rev=c566aabd77be8ac7a427c2b704860c47e34657b9#c566aabd77be8ac7a427c2b704860c47e34657b9",bindings:"0.21.0",bindgen:"0.2.129",wasmSha256:"4686ddcbc3804f6692e67a93a0a99eb54ea92babc4ad293a54010ef54b7c9ec5",wasmBytes:3307856,solverChanges:!0});export{e as buildInfo};
|
package/dist/provenance.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"scope": "package",
|
|
4
4
|
"packageName": "@absolutejs/rapier3d",
|
|
5
|
-
"packageVersion": "0.
|
|
6
|
-
"qualifiedKernelRelease": "0.
|
|
5
|
+
"packageVersion": "0.14.1",
|
|
6
|
+
"qualifiedKernelRelease": "0.14.1",
|
|
7
7
|
"upstream": "b716d375efc0201003f0cd9ef7168eee0b62c177",
|
|
8
8
|
"engine": "0.36.0",
|
|
9
9
|
"collisionLibraryVersion": "0.31.1",
|
|
10
10
|
"collisionSource": "git+https://github.com/absolutejs/parry?rev=c566aabd77be8ac7a427c2b704860c47e34657b9#c566aabd77be8ac7a427c2b704860c47e34657b9",
|
|
11
11
|
"bindings": "0.21.0",
|
|
12
12
|
"bindgen": "0.2.129",
|
|
13
|
-
"wasmSha256": "
|
|
14
|
-
"wasmBytes":
|
|
13
|
+
"wasmSha256": "4686ddcbc3804f6692e67a93a0a99eb54ea92babc4ad293a54010ef54b7c9ec5",
|
|
14
|
+
"wasmBytes": 3307856,
|
|
15
15
|
"solverChanges": true
|
|
16
16
|
}
|