@series-inc/rundot-syncplay 6.0.0-rc.36 → 6.0.0-rc.38
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/MIGRATING-RC36-TO-RC37.md +53 -0
- package/MIGRATING-RC37-TO-RC38.md +22 -0
- package/core/native/physics/world.cpp +5 -4
- package/core/src/physics/physics-profile-wasm-module.generated.mjs +5 -5
- package/core/src/physics/physics-wasm-module.generated.mjs +5 -5
- package/core/src/physics2d/physics2d-wasm-module.generated.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/physics/3d.d.ts +5 -0
- package/dist/physics/3d.js +136 -37
- package/dist/physics/vehicle-state2d.d.ts +104 -0
- package/dist/physics/vehicle-state2d.js +757 -0
- package/package.json +5 -3
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Migrating from Syncplay 6.0.0-rc.36 to rc.37
|
|
2
|
+
|
|
3
|
+
This release resolves the 5 remaining physics and portal gaps requested by the Wreck Yard engineering team, improving Continuous Collision Detection (CCD) isolation, portal aperture contact clipping, motion locks under arbitrary pair rotations, proxy capacity visibility and fail-closed safety, and chained portal traversal.
|
|
4
|
+
|
|
5
|
+
## New World Options & Capabilities
|
|
6
|
+
|
|
7
|
+
### Configurable Portal Proxy Reserve Capacity
|
|
8
|
+
|
|
9
|
+
The portal proxy reserve (used for clone bodies, bubbles, and joint ghosts) is now configurable in `createPhysicsWorld3D` via `portalProxyCapacity`:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
const world = createPhysicsWorld3D({
|
|
13
|
+
tickRate: 60,
|
|
14
|
+
capacity: { bodies: 64, joints: 16 },
|
|
15
|
+
portalProxyCapacity: 128, // Default is 64; configurable up to 512
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Inspect Proxy Metrics on `world.info()`
|
|
20
|
+
|
|
21
|
+
`world.info()` now exposes proxy reserve utilisation metrics:
|
|
22
|
+
|
|
23
|
+
- `info.portalProxyCapacity`: The maximum number of simultaneous portal proxies configured.
|
|
24
|
+
- `info.portalProxyCount`: The current number of active proxy bodies (straddler clones, bubble colliders, joint ghosts).
|
|
25
|
+
- `info.portalProxyOverflow`: Cumulative count of proxy allocation overflow events.
|
|
26
|
+
|
|
27
|
+
### Fail-Closed Proxy Allocation
|
|
28
|
+
|
|
29
|
+
In prior versions, saturating the portal proxy reserve could silently evict existing straddler clone support. From rc.37, joint ghost allocation against a saturated proxy pool fails closed with error code `physics.capacity-exceeded`, preserving all existing clone couplings and straddler contacts without unexpected floor fall-throughs.
|
|
30
|
+
|
|
31
|
+
## Behavior Changes & Bug Fixes
|
|
32
|
+
|
|
33
|
+
### 1. Isolated Continuous Collision Detection (CCD)
|
|
34
|
+
|
|
35
|
+
In rc.36, when any body in the physics world had Continuous Collision Detection (`ccd: true`) active, the contact solver disabled portal clone contacts world-wide. In rc.37, CCD continuous contact clocking is scoped specifically to bullet bodies and their direct contacts. Portal clone couplings and distant straddler supports remain fully active regardless of distant CCD bodies.
|
|
36
|
+
|
|
37
|
+
### 2. Free-Standing Aperture Contact Clipping
|
|
38
|
+
|
|
39
|
+
In free-standing portal setups (portals without backing walls), objects behind the exit portal aperture plane could previously contact the rear of the clone. In rc.37, the portal contact manager excludes contacts for geometry lying completely behind the exit aperture half-space (`localCenter.z + radius <= 1e-4`), preventing rear ghost collisions while maintaining full interactive pushback in front of the portal.
|
|
40
|
+
|
|
41
|
+
### 3. Arbitrary Portal Pair Rotations with Motion Locks
|
|
42
|
+
|
|
43
|
+
In previous releases, bodies with linear or angular `motionLocks` (e.g., 2D physics plane constraints or vertical lock axes) would lose their lock constraints when traversing portals with non-cardinal relative rotations (such as 30° or 45°). rc.37 projects motion lock axes onto the dominant transformed rotation axis (using $\ge \cos(45^\circ) \approx 0.7071$), keeping locked axes constrained across arbitrary rotations.
|
|
44
|
+
|
|
45
|
+
### 4. Chained Portals (Depth 2 Traversal)
|
|
46
|
+
|
|
47
|
+
Syncplay now supports chained portal topologies where an exit of Portal Pair 1 immediately leads into an entry of Portal Pair 2. Straddler detection recursively inspects transformed body bounds up to depth 2, allowing long bodies spanning multiple openings to retain continuous momentum and contact response with bit-identical rollback parity.
|
|
48
|
+
|
|
49
|
+
## Partner Architecture Notes
|
|
50
|
+
|
|
51
|
+
- **Buoyancy & Fluid Sensors:** Fluid bodies configured with `sensor: true` emit fluid contact events continuously through portals; bubble shapes carry surface velocities across the aperture frame.
|
|
52
|
+
- **CCD bodyB Restriction on Portal Joints:** Portal joints require a non-CCD `bodyB` to ensure single-substep constraint determinism. If an articulated structure needs CCD, attach the CCD component to a child body and link the joint to a standard dynamic parent body.
|
|
53
|
+
- **Rollback Safety & Stale Handles:** All portal proxy state is derived deterministically from the canonical checkpoint. When invoking `world.restoreCheckpoint(cp)`, remember that previous body handles are invalidated; obtain updated handles via `world.resolveBody(bodyId)`.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Migrating from Syncplay rc.37 to rc.38
|
|
2
|
+
|
|
3
|
+
rc.37 did not publish. rc.38 keeps its portal features and fixes the work
|
|
4
|
+
that exceeded three release performance limits. No API change is required.
|
|
5
|
+
|
|
6
|
+
## Portal motion reads
|
|
7
|
+
|
|
8
|
+
Portal opening checks no longer resolve an unused body handle when cached
|
|
9
|
+
shape extents are available. Free-standing exit clipping uses the motion
|
|
10
|
+
rows already read before the step. It keeps the same body origin, shape
|
|
11
|
+
radius, and clipping threshold.
|
|
12
|
+
|
|
13
|
+
## Pending teleport history
|
|
14
|
+
|
|
15
|
+
The portal manager indexes pending history keys. An ordinary step does not
|
|
16
|
+
scan all history entries to find a pending teleport. Host jumps keep the
|
|
17
|
+
original history order. Checkpoint restore rebuilds the index from the saved
|
|
18
|
+
history. The index is not serialized.
|
|
19
|
+
|
|
20
|
+
These changes keep checkpoint data and physics results unchanged. Existing
|
|
21
|
+
performance limits stay unchanged. The three failed gates now print their
|
|
22
|
+
measurements when they pass, so release logs retain the evidence.
|
|
@@ -6490,11 +6490,12 @@ WorldError World::stepWithRules(const StepOptions& options,
|
|
|
6490
6490
|
if (clone >= bodyCount || original >= bodyCount || clone == original) {
|
|
6491
6491
|
return error(WorldErrorCode::InvalidState, "portal coupling body is missing");
|
|
6492
6492
|
}
|
|
6493
|
-
//
|
|
6494
|
-
//
|
|
6495
|
-
//
|
|
6493
|
+
// A CCD original cannot take changes the clock did not make, so
|
|
6494
|
+
// a clone or joint ghost of a CCD body stays inert for that step.
|
|
6495
|
+
// Unrelated portals with non-CCD bodies remain fully supported
|
|
6496
|
+
// even when distant bodies in the world run the CCD motion clock.
|
|
6496
6497
|
const bool bulletOriginal = candidateBodies_[original * bStride + 30] != 0.0;
|
|
6497
|
-
if (
|
|
6498
|
+
if (bulletOriginal) {
|
|
6498
6499
|
const std::uint64_t index = clone;
|
|
6499
6500
|
std::erase_if(stepRestrictedAllowedPairs, [index](std::uint64_t pair) {
|
|
6500
6501
|
return (pair >> 32) == index || (pair & 0xffffffffu) == index;
|