@series-inc/rundot-syncplay 6.0.0-rc.62 → 6.0.0-rc.64
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 +17 -0
- package/core/native/physics/buoyancy.cpp +732 -26
- package/core/native/physics/buoyancy.hpp +56 -0
- package/core/native/physics/checkpoint_schema.hpp +22 -8
- package/core/native/physics/physics.cpp +1334 -212
- package/core/native/physics/physics.hpp +19 -0
- package/core/native/physics/world.cpp +317 -48
- package/core/native/physics/world.hpp +123 -11
- package/core/native/physics/world_abi.cpp +3 -2
- package/core/native/physics/world_digest_visitor.hpp +10 -3
- package/core/native/physics/world_strong_digest.hpp +12 -0
- package/core/scripts/build-wasm-physics.mjs +29 -23
- package/core/src/physics/articulation.mjs +2 -15
- package/core/src/physics/box3d-probe.mjs +2 -12
- package/core/src/physics/cloth.mjs +2 -17
- package/core/src/physics/deformable-query.mjs +2 -17
- package/core/src/physics/fracture.mjs +2 -17
- package/core/src/physics/gear.mjs +2 -17
- package/core/src/physics/lag-compensation.mjs +2 -17
- package/core/src/physics/particles.mjs +2 -15
- package/core/src/physics/path-joint.mjs +2 -15
- package/core/src/physics/physics-extended-wasm-module.generated.mjs +1 -5
- package/core/src/physics/physics-profile-wasm-module.generated.mjs +8 -5
- package/core/src/physics/physics-profile.wasm +0 -0
- package/core/src/physics/physics-wasm-module.generated.mjs +8 -5
- package/core/src/physics/physics.wasm +0 -0
- package/core/src/physics/powered-ragdoll.mjs +2 -17
- package/core/src/physics/powertrain.mjs +2 -15
- package/core/src/physics/profile.mjs +2 -2
- package/core/src/physics/pulley.mjs +2 -15
- package/core/src/physics/ragdoll.mjs +2 -15
- package/core/src/physics/rounded-convex.mjs +2 -17
- package/core/src/physics/sdf-geometry.mjs +2 -17
- package/core/src/physics/soft-body.mjs +2 -17
- package/core/src/physics/soft-collision.mjs +2 -17
- package/core/src/physics/surface-velocity.mjs +2 -17
- package/core/src/physics/tracks.mjs +2 -15
- package/core/src/physics/wasm-instance.mjs +22 -21
- package/core/src/physics/world.mjs +69 -0
- package/core/src/physics2d/physics2d-wasm-module.generated.mjs +5 -2
- package/core/src/physics2d/physics2d.wasm +0 -0
- package/core/src/physics2d/wasm-instance.mjs +9 -13
- package/core/src/shared/wasm-artifact.d.mts +9 -0
- package/core/src/shared/wasm-artifact.mjs +185 -0
- package/dist/networked-client.d.ts +7 -4
- package/dist/networked-client.js +53 -11
- package/dist/physics/3d.js +205 -29
- package/dist/physics/contact-decode3d.d.ts +75 -0
- package/dist/physics/contact-decode3d.js +448 -0
- package/dist/physics/hot-path-stats3d.d.ts +15 -0
- package/dist/physics/hot-path-stats3d.js +3 -0
- package/dist/physics/portal-far-rows3d.d.ts +31 -0
- package/dist/physics/portal-far-rows3d.js +134 -0
- package/dist/tools/vite-plugin.d.ts +12 -0
- package/dist/tools/vite-plugin.js +17 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -31,6 +31,23 @@ The profiling entry keeps the named WASM file in the game build. Keep it out of
|
|
|
31
31
|
release imports to exclude that file. The npm package still includes both
|
|
32
32
|
artifacts. Profiling uses the same simulation source and digest rules.
|
|
33
33
|
|
|
34
|
+
## Physics WASM files
|
|
35
|
+
|
|
36
|
+
Each artifact ships as a binary file beside its generated metadata module:
|
|
37
|
+
`core/src/physics/physics.wasm`, `core/src/physics/physics-profile.wasm`, and
|
|
38
|
+
`core/src/physics2d/physics2d.wasm`. The loader resolves the file with
|
|
39
|
+
`new URL('./<name>.wasm', import.meta.url)`, reads it (Node reads the file,
|
|
40
|
+
browsers and workers fetch it), and verifies it before use: the WASM magic
|
|
41
|
+
number, SHA-256 equal to `wasmSha256` in the metadata, and an empty import list.
|
|
42
|
+
Any mismatch stops initialization with a `KINETIX_WASM_*` error. There is no
|
|
43
|
+
base64 copy in JavaScript and no fallback.
|
|
44
|
+
|
|
45
|
+
Vite builds copy the file. Vite dev needs
|
|
46
|
+
`optimizeDeps.exclude: ['@series-inc/rundot-syncplay']`, which
|
|
47
|
+
`rundotSyncplayPlugin()` adds. Other bundlers must copy the referenced `.wasm`
|
|
48
|
+
files beside the output chunks. In a browser, synchronous physics calls need an
|
|
49
|
+
earlier `await initPhysics3D()`; Node can load synchronously.
|
|
50
|
+
|
|
34
51
|
## Dynamic seat control & player-keyed secrets
|
|
35
52
|
|
|
36
53
|
Syncplay supports deterministic dynamic seating across any valid simulation capacity X via `deterministic.seatPolicy`:
|