@series-inc/rundot-syncplay 6.0.0-rc.78 → 6.0.0-rc.79
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
CHANGED
|
@@ -12,9 +12,9 @@ The root entry provides periodic fixed math, value noise, fBm, render helpers,
|
|
|
12
12
|
and an optional periodic xz point grid. `createPhysicsWorld3D({ periodicDomain })`
|
|
13
13
|
adds periodic raycasts, overlaps, and shape casts with an `image` on each hit.
|
|
14
14
|
The domain is flat. These utilities do not add globe curvature or contact
|
|
15
|
-
across a seam.
|
|
16
|
-
the [periodic-space guide](docs/periodic-space.md) for units,
|
|
17
|
-
examples.
|
|
15
|
+
across a seam. Every peer of a periodic world needs the same domain and native
|
|
16
|
+
world ABI 19. Read the [periodic-space guide](docs/periodic-space.md) for units,
|
|
17
|
+
limits, and examples.
|
|
18
18
|
|
|
19
19
|
## Physics profiling
|
|
20
20
|
|
|
@@ -512,7 +512,7 @@ frame, and disagreeing checksums.
|
|
|
512
512
|
|
|
513
513
|
## Physics API v1
|
|
514
514
|
|
|
515
|
-
Syncplay
|
|
515
|
+
Syncplay has one public TypeScript API for each physics dimension. Import
|
|
516
516
|
2D physics from `@series-inc/rundot-syncplay/physics/2d`. Import 3D physics from
|
|
517
517
|
`@series-inc/rundot-syncplay/physics/3d`. Do not import a raw physics adapter
|
|
518
518
|
from `/core`.
|
|
@@ -566,9 +566,11 @@ layout, WASM boundary, schedule, and checkpoint representation can change when
|
|
|
566
566
|
a complete benchmark proves a faster design. Each replacement must keep the
|
|
567
567
|
public contract, deterministic results, rollback controls, and bounded memory.
|
|
568
568
|
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
569
|
+
Version 6.0.0-rc.78 uses one Box3D engine for every 3D world and physics ABI 25.
|
|
570
|
+
Do not restore a checkpoint or load a replay from rc.77 or older. Those builds
|
|
571
|
+
use physics ABI 24 or earlier, and the world profile check rejects them. Every
|
|
572
|
+
peer in a match must use rc.78 or later. Change the game deterministic version,
|
|
573
|
+
record golden digests again, and start new rollback, replay, and late-join history.
|
|
572
574
|
|
|
573
575
|
Read the [2D guide](https://github.com/series-ai/venus/blob/develop/packages/sdk-docs/rundot-developer-platform/api/SYNCPLAY-PHYSICS-2D.md),
|
|
574
576
|
the [3D guide](https://github.com/series-ai/venus/blob/develop/packages/sdk-docs/rundot-developer-platform/api/SYNCPLAY-PHYSICS.md), and
|
|
@@ -584,19 +586,18 @@ the state to `released` with reason `body-removed`. That step applies no force.
|
|
|
584
586
|
Revision 1 keeps its body handle until you restore the servo state. A physics
|
|
585
587
|
restore makes the old handle stale. Restore both states before the next step.
|
|
586
588
|
|
|
587
|
-
### SI types
|
|
589
|
+
### SI types
|
|
588
590
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
the bits of a finite input. It rejects NaN and infinity.
|
|
591
|
+
Use the SI constructors for each quantity: `meters()` for positions,
|
|
592
|
+
`kilograms()` for mass, `metersPerSecond()` for linear velocity, and
|
|
593
|
+
`newtons()` for force. Use `perSecond()` for a damping rate. Use
|
|
594
|
+
`frameVelocity()` and `frameGravity()` for frame quantities. Each constructor
|
|
595
|
+
keeps the bits of a finite input. It rejects NaN and infinity. Some body input
|
|
596
|
+
fields accept a plain number as well. The type of each field states which form
|
|
597
|
+
it takes. Revision 1 helper behavior remains selected by default.
|
|
594
598
|
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
default. The revision 1 tests compare complete results with the previous RC.
|
|
598
|
-
|
|
599
|
-
Set `behaviorRevision: 3` to recover from contact penetration after a landing.
|
|
599
|
+
For the character controller (`stepDeterministicKcc3D`), set `behaviorRevision: 3`
|
|
600
|
+
to recover from contact penetration after a landing.
|
|
600
601
|
This revision includes slope clearance for dynamic supports. It keeps the
|
|
601
602
|
revision 1 result shape and uses required checksums by default. Revision 1
|
|
602
603
|
remains the default. Revision 2 keeps its support state and portal movement.
|
|
@@ -612,17 +613,20 @@ The operation keeps the shape, mass, inertia, logical ID, and velocities.
|
|
|
612
613
|
An identical normalized pose preserves sleep and the mutation revision.
|
|
613
614
|
A changed pose wakes the affected dynamic joint group.
|
|
614
615
|
|
|
615
|
-
Use `world.setBodyLinearDamping(idOrHandle,
|
|
616
|
-
The
|
|
617
|
-
|
|
616
|
+
Use `world.setBodyLinearDamping(idOrHandle, damping)` to change linear damping.
|
|
617
|
+
The value is a rate in 1/s, built with `perSecond(value)`. Each substep of length
|
|
618
|
+
`h` multiplies the velocity by `1 / (1 + h × damping)`. The default is 0 (no
|
|
619
|
+
damping). `setBodyAngularDamping` and `setBodyDamping` use the same unit. To
|
|
620
|
+
convert an old per-tick keep fraction k at tick rate R, use (1 / k - 1) * R.
|
|
618
621
|
The operation preserves sleep.
|
|
619
622
|
Use `world.wakeBody(idOrHandle)` to wake a dynamic body without a velocity change.
|
|
620
623
|
Resolve a new handle after a checkpoint restore, or use the logical ID.
|
|
621
624
|
|
|
622
625
|
### Batch motion output
|
|
623
626
|
|
|
624
|
-
`world.writeBodyMotionInto(poses, velocities, ids, status)` returns the body
|
|
625
|
-
mutation `revision`, and `restoreEpoch`.
|
|
627
|
+
`world.writeBodyMotionInto(poses, velocities, ids, status, teleports?)` returns the body
|
|
628
|
+
count, mutation `revision`, and `restoreEpoch`. The optional `teleports` output is a
|
|
629
|
+
`Uint32Array` of teleport counters, one per body, at least as long as the body count.
|
|
626
630
|
Use `Float64Array` for poses and velocities.
|
|
627
631
|
Use `BigUint64Array` for logical IDs.
|
|
628
632
|
Use `Uint8Array` for status.
|
|
@@ -30,7 +30,7 @@ export const physicsProfileWasmMetadata = Object.freeze({
|
|
|
30
30
|
"sourceHash": "417d4e85a45f0389136ece6f9f22bef83930fac8ff71cec8f2845641a218d9fb",
|
|
31
31
|
"wasmSha256": "852e08066c6bb06bdc3d76d5346ad3898a4e780b3c860de8a8c55a50b41a717f",
|
|
32
32
|
"artifact": "profile",
|
|
33
|
-
"packageVersion": "6.0.0-rc.
|
|
33
|
+
"packageVersion": "6.0.0-rc.79",
|
|
34
34
|
"compilerFlags": [
|
|
35
35
|
"-std=c++20",
|
|
36
36
|
"-O3",
|
|
@@ -30,7 +30,7 @@ export const physicsWasmMetadata = Object.freeze({
|
|
|
30
30
|
"sourceHash": "d31a74208290a1e02db1f0365f165afe00d958b272d87b86083cd6b8e6780d16",
|
|
31
31
|
"wasmSha256": "890b6c39da11e33bae3bf12acde51f63b7e0174e8857d4ab3ff38a65e580483e",
|
|
32
32
|
"artifact": "production",
|
|
33
|
-
"packageVersion": "6.0.0-rc.
|
|
33
|
+
"packageVersion": "6.0.0-rc.79",
|
|
34
34
|
"compilerFlags": [
|
|
35
35
|
"-std=c++20",
|
|
36
36
|
"-O3",
|
|
@@ -50,7 +50,7 @@ export const physics2dWasmMetadata = Object.freeze({
|
|
|
50
50
|
"sourceHash": "faa090a03a6fddaf79c704fb1d76f810955ff35597449c8cec9541a75905a37e",
|
|
51
51
|
"wasmSha256": "49cb90541deed40f5fff1015bb578e13ec9a793d51931c1227e3e5a11bbfa3f7",
|
|
52
52
|
"artifact": "production",
|
|
53
|
-
"packageVersion": "6.0.0-rc.
|
|
53
|
+
"packageVersion": "6.0.0-rc.79",
|
|
54
54
|
"compilerFlags": [
|
|
55
55
|
"-std=c++20",
|
|
56
56
|
"-O3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@series-inc/rundot-syncplay",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.79",
|
|
4
4
|
"description": "Kinetix orchestration, rollback, replay, late-join, and deterministic networking for RUN.game",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
"check:contact-portal-regression": "node scripts/gen-contact-portal-regression.mjs --check",
|
|
291
291
|
"check:js-hotpath-mutations": "node scripts/check-js-hotpath-mutations.mjs --strict",
|
|
292
292
|
"check:periodic-mutations": "node --test scripts/check-periodic-mutations.test.mjs && node scripts/check-periodic-mutations.mjs --strict",
|
|
293
|
-
"test:capability-restoration": "node --import tsx --test --test-reporter=tap --test-concurrency=1 tests/canonical-ccd.test.ts tests/canonical-fluids.test.ts tests/ccd-progress.test.ts tests/ccd-tunnel-gate.test.ts tests/box3d-speculative-shapes.test.ts tests/box3d-filter-query.test.ts tests/box3d-multi-shape.test.ts tests/box3d-multi-shape-events.test.ts tests/box3d-multi-shape-gaps.test.ts tests/box3d-rollback-filter.test.ts tests/box3d-mesh-speculative.test.ts tests/box3d-compound-manifolds.test.ts tests/box3d-toi.test.ts tests/hull-mesh-contact.test.ts tests/box3d-tree-broadphase-stack.test.ts tests/box3d-tree-continuous-targets.test.ts tests/box3d-joint-momentum.test.ts tests/box3d-contact-hertz-zero.test.ts tests/box3d-body-world-api.test.ts tests/triangle-soup-cull.test.ts tests/native-math-independence.test.ts tests/fluid-shape-coverage.test.ts tests/box3d-hull-capsule-narrowphase.test.ts tests/box3d-joint-api.test.ts tests/box3d-events.test.ts tests/box3d-box-sat.test.ts tests/box3d-solver-sleep-gaps.test.ts tests/box3d-mesh-narrowphase.test.ts tests/box3d-mover-api.test.ts tests/box3d-world-switches.test.ts",
|
|
293
|
+
"test:capability-restoration": "node --import tsx --test --test-reporter=tap --test-concurrency=1 tests/canonical-ccd.test.ts tests/canonical-fluids.test.ts tests/ccd-progress.test.ts tests/ccd-tunnel-gate.test.ts tests/sleeping-box-contact-performance.test.mjs tests/box3d-speculative-shapes.test.ts tests/box3d-filter-query.test.ts tests/box3d-multi-shape.test.ts tests/box3d-multi-shape-events.test.ts tests/box3d-multi-shape-gaps.test.ts tests/box3d-rollback-filter.test.ts tests/box3d-mesh-speculative.test.ts tests/box3d-compound-manifolds.test.ts tests/box3d-toi.test.ts tests/hull-mesh-contact.test.ts tests/box3d-tree-broadphase-stack.test.ts tests/box3d-tree-continuous-targets.test.ts tests/box3d-joint-momentum.test.ts tests/box3d-contact-hertz-zero.test.ts tests/box3d-body-world-api.test.ts tests/triangle-soup-cull.test.ts tests/native-math-independence.test.ts tests/fluid-shape-coverage.test.ts tests/box3d-hull-capsule-narrowphase.test.ts tests/box3d-joint-api.test.ts tests/box3d-events.test.ts tests/box3d-box-sat.test.ts tests/box3d-solver-sleep-gaps.test.ts tests/box3d-mesh-narrowphase.test.ts tests/box3d-mover-api.test.ts tests/box3d-world-switches.test.ts",
|
|
294
294
|
"test:docs": "node --import tsx --test scripts/check-doc-examples.test.mjs tests/doc-example-coverage.test.ts && node scripts/check-doc-examples.mjs --check",
|
|
295
295
|
"check:api-deprecations": "node scripts/generate-api-deprecations.mjs --check",
|
|
296
296
|
"test:api": "node --import tsx --test tests/errors.test.ts && npm run check:api-deprecations",
|