@series-inc/rundot-syncplay 6.0.0-rc.29 → 6.0.0-rc.30

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.
@@ -0,0 +1,51 @@
1
+ # Migrating from Syncplay 6.0.0-rc.28 to rc.29
2
+
3
+ Syncplay `6.0.0-rc.29` resolves partner feedback on portal physics, doorway aperture sliding, character controller pending body references, and output parity across checkpoint restores.
4
+
5
+ ---
6
+
7
+ ## 1. Reserved Collision Layers 24–30 (Portal Host Slots)
8
+
9
+ ### What Changed
10
+ To provide zero-overhead wall aperture cutouts without altering the native C++ physics solver, Syncplay dynamically isolates portal host colliders by temporarily shifting host bodies to dedicated internal filtering layers.
11
+
12
+ - **Bits 24 through 30 (`0x7f000000`)** in the 32-bit collision layer bitmask are now reserved for internal portal host filtering.
13
+ - Up to **7 distinct host bodies** can be registered concurrently across active portal pairs in a physics world.
14
+ - Host slots are dynamically allocated upon portal pair creation and automatically reclaimed when the portal pair is removed via `removePortalPair(handle)`.
15
+
16
+ ### Action Required
17
+ If your game uses layers 24 through 30 for custom gameplay categories (such as projectiles, debris, or triggers), those categories will conflict with portal host suppression.
18
+ - Move custom gameplay categories to unreserved layers (bits 0 through 23).
19
+ - Update any layer bitmasks (`mask` and `layerMask` queries) that reference layers 24–30.
20
+
21
+ ---
22
+
23
+ ## 2. Aperture Containment Tolerance (0.05 m per Boundary)
24
+
25
+ ### What Changed
26
+ In rc.28, resting contact solvers permitted normal micro-penetration (~2 mm under gravity). For bodies sliding into doorways where the portal aperture started at floor height ($y=0$), the body's lower bounds slightly breached the zero margin, causing the wall host collider to remain active and stopping the body at the frame.
27
+
28
+ In rc.29, aperture containment calculations incorporate an explicit margin tolerance of **0.05 m (5 cm)** per projected boundary:
29
+
30
+ $$|x| + e_x \le \frac{W}{2} + 0.05, \qquad |y| + e_y \le \frac{H}{2} + 0.05$$
31
+
32
+ ### Behavior
33
+ - A centered body can be up to **0.10 m wider** than the opening ($0.05\text{ m}$ on each side) and still pass through without being blocked by the host wall.
34
+ - Bodies that protrude more than 0.05 m past any single boundary remain blocked by the wall collider.
35
+ - Floor-level doorways admit resting boxes and angled approaches smoothly without catching.
36
+
37
+ ---
38
+
39
+ ## 3. KCC Explicit Portals: Pending Body References
40
+
41
+ ### What Changed
42
+ When creating a character controller and a portal pair inside the same `world.edit()` transaction, passing `hostBodyId` as the pending body reference object returned by `edit.createBody()` previously threw `SyntaxError: Cannot convert [object Object] to a BigInt`.
43
+
44
+ In rc.29, character controller portal ingestion automatically resolves pending body references through `physics.resolveBody(ref).id`, accepting raw `BigInt`, number, string, live handle, or pending reference objects.
45
+
46
+ ---
47
+
48
+ ## 4. Checkpoint Output Parity
49
+
50
+ ### What Changed
51
+ `world.checkpointLatest(checkpoint)` now satisfies the full `PhysicsLatestOutputs3D` contract, returning frozen empty arrays for `portalCrossings: []` and `motionBatch: { count: 0, bodies: [] }` on checkpoint reads, guaranteeing strict deep-equality against `world.latest()` on non-crossing frames.
@@ -23,7 +23,7 @@ export const physicsProfileWasmMetadata = Object.freeze({
23
23
  "sourceHash": "13bc7e6c473b9a773bbb0f77d1c2126df59a074759ebb5efb90b8dde1ff4d10a",
24
24
  "wasmSha256": "d398c126e4da59324d6e28f14132173a9f980f9fc429f632baffacbae4744fef",
25
25
  "artifact": "profile",
26
- "packageVersion": "6.0.0-rc.29",
26
+ "packageVersion": "6.0.0-rc.30",
27
27
  "compilerFlags": [
28
28
  "-std=c++20",
29
29
  "-O3",
@@ -23,7 +23,7 @@ export const physicsWasmMetadata = Object.freeze({
23
23
  "sourceHash": "4bb02a55da437ff3075d5350d48f319bd8b89a6dd31d9a34d9b0cb3677ed4914",
24
24
  "wasmSha256": "76ea5a82d4e84d0e3bc3fd93dd54992b54c09614f7024e4f8b5bf91445db1955",
25
25
  "artifact": "production",
26
- "packageVersion": "6.0.0-rc.29",
26
+ "packageVersion": "6.0.0-rc.30",
27
27
  "compilerFlags": [
28
28
  "-std=c++20",
29
29
  "-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.29",
53
+ "packageVersion": "6.0.0-rc.30",
54
54
  "compilerFlags": [
55
55
  "-std=c++20",
56
56
  "-O3",
@@ -84,6 +84,8 @@ function brandLatestOutputs3D(data) {
84
84
  jointReactions: Object.freeze(data.reactions.map(brandReaction)),
85
85
  breakEvents,
86
86
  fluidInteractions,
87
+ portalCrossings: Object.freeze([]),
88
+ motionBatch: Object.freeze({ count: 0, bodies: Object.freeze([]) }),
87
89
  });
88
90
  }
89
91
  function newtonsVector(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@series-inc/rundot-syncplay",
3
- "version": "6.0.0-rc.29",
3
+ "version": "6.0.0-rc.30",
4
4
  "description": "Kinetix orchestration, rollback, replay, late-join, and deterministic networking for RUN.game",
5
5
  "repository": {
6
6
  "type": "git",
@@ -206,7 +206,8 @@
206
206
  "core/src",
207
207
  "core/world-kernel.d.ts",
208
208
  "dist",
209
- "MIGRATING-RC20-TO-RC22.md"
209
+ "MIGRATING-RC20-TO-RC22.md",
210
+ "MIGRATING-RC28-TO-RC29.md"
210
211
  ],
211
212
  "sideEffects": [
212
213
  "./core/scripts/emit-product-digests.mjs",