@series-inc/rundot-syncplay 6.0.0-rc.55 → 6.0.0-rc.57
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/core/native/physics/checkpoint_schema.hpp +32 -44
- package/core/native/physics/physics.cpp +1405 -316
- package/core/native/physics/world.cpp +391 -147
- package/core/native/physics/world.hpp +125 -51
- package/core/runtime.d.ts +17 -1
- package/core/src/kinetix-owned-runtime-adapter.mjs +4 -3
- package/core/src/kinetix-runtime-adapter-utils.mjs +2 -1
- 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/physics/world.mjs +107 -52
- package/core/src/physics2d/physics2d-wasm-module.generated.mjs +1 -1
- package/core/world.d.ts +1 -0
- package/dist/authority-room.js +139 -8
- package/dist/index.d.ts +1 -1
- package/dist/input-authority.d.ts +4 -1
- package/dist/input-authority.js +13 -1
- package/dist/match-log.js +3 -0
- package/dist/networked-client.d.ts +13 -1
- package/dist/networked-client.js +232 -87
- package/dist/physics/3d.js +173 -58
- package/dist/physics/installed-runtime3d.d.ts +2 -1
- package/dist/physics/installed-runtime3d.js +4 -3
- package/dist/replay.js +3 -0
- package/dist/runner.d.ts +11 -0
- package/dist/runner.js +14 -1
- package/dist/runtime-session.d.ts +4 -1
- package/dist/runtime-session.js +17 -2
- package/dist/session-snapshot.d.ts +3 -0
- package/dist/session-snapshot.js +21 -6
- package/dist/session-wire.js +14 -1
- package/dist/types.d.ts +14 -0
- package/package.json +2 -2
|
@@ -215,6 +215,36 @@ inline void checkpointRecordSchemaGuard(const CheckpointBodyTable& value) noexce
|
|
|
215
215
|
[[maybe_unused]] const auto& [tileValues, valueCount, tiles, tileAllocationBytes,
|
|
216
216
|
selfAllocationBytes, totalAllocatedBytes] = value;
|
|
217
217
|
}
|
|
218
|
+
inline void checkpointRecordSchemaGuard(const CheckpointStaticSlab& value) noexcept {
|
|
219
|
+
[[maybe_unused]] const auto& [
|
|
220
|
+
totalAllocatedBytes,
|
|
221
|
+
stampedAllocatedBytes,
|
|
222
|
+
jointsOffset,
|
|
223
|
+
jointsCount,
|
|
224
|
+
legacyGeometryOffset,
|
|
225
|
+
legacyGeometryCount,
|
|
226
|
+
forcesOffset,
|
|
227
|
+
forcesCount,
|
|
228
|
+
fluidsOffset,
|
|
229
|
+
fluidsCount,
|
|
230
|
+
surfaceVelocitiesOffset,
|
|
231
|
+
surfaceVelocitiesCount,
|
|
232
|
+
bodyMaterialFramesOffset,
|
|
233
|
+
bodyMaterialFramesCount,
|
|
234
|
+
bodyMaterialsOffset,
|
|
235
|
+
bodyMaterialsCount,
|
|
236
|
+
topologyBodyIdsOffset,
|
|
237
|
+
topologyBodyIdsCount,
|
|
238
|
+
topologyJointsOffset,
|
|
239
|
+
topologyJointsCount,
|
|
240
|
+
topologyFluidIdsOffset,
|
|
241
|
+
topologyFluidIdsCount,
|
|
242
|
+
bodyDefinitionSignaturesOffset,
|
|
243
|
+
bodyDefinitionSignaturesCount,
|
|
244
|
+
jointDefinitionSignaturesOffset,
|
|
245
|
+
jointDefinitionSignaturesCount
|
|
246
|
+
] = value;
|
|
247
|
+
}
|
|
218
248
|
inline void checkpointRecordSchemaGuard(const BodyId& value) noexcept {
|
|
219
249
|
[[maybe_unused]] const auto& [id] = value;
|
|
220
250
|
}
|
|
@@ -243,6 +273,7 @@ inline void checkpointDataSchemaGuard(const CheckpointData& data) noexcept {
|
|
|
243
273
|
const auto& [
|
|
244
274
|
world,
|
|
245
275
|
bodies,
|
|
276
|
+
staticSlab,
|
|
246
277
|
geometryRoot,
|
|
247
278
|
pose,
|
|
248
279
|
profile,
|
|
@@ -253,26 +284,14 @@ inline void checkpointDataSchemaGuard(const CheckpointData& data) noexcept {
|
|
|
253
284
|
nextFluidId,
|
|
254
285
|
jointsOffset,
|
|
255
286
|
jointsCount,
|
|
256
|
-
legacyGeometryOffset,
|
|
257
|
-
legacyGeometryCount,
|
|
258
287
|
contactCacheOffset,
|
|
259
288
|
contactCacheCount,
|
|
260
|
-
forcesOffset,
|
|
261
|
-
forcesCount,
|
|
262
289
|
tickForcesOffset,
|
|
263
290
|
tickForcesCount,
|
|
264
291
|
supportSpringsOffset,
|
|
265
292
|
supportSpringsCount,
|
|
266
293
|
supportForcesOffset,
|
|
267
294
|
supportForcesCount,
|
|
268
|
-
fluidsOffset,
|
|
269
|
-
fluidsCount,
|
|
270
|
-
surfaceVelocitiesOffset,
|
|
271
|
-
surfaceVelocitiesCount,
|
|
272
|
-
bodyMaterialsOffset,
|
|
273
|
-
bodyMaterialsCount,
|
|
274
|
-
bodyMaterialFramesOffset,
|
|
275
|
-
bodyMaterialFramesCount,
|
|
276
295
|
jointWarmStateOffset,
|
|
277
296
|
jointWarmStateCount,
|
|
278
297
|
contactEventsOffset,
|
|
@@ -283,16 +302,6 @@ inline void checkpointDataSchemaGuard(const CheckpointData& data) noexcept {
|
|
|
283
302
|
jointBreakEventsCount,
|
|
284
303
|
fluidInteractionsOffset,
|
|
285
304
|
fluidInteractionsCount,
|
|
286
|
-
topologyBodyIdsOffset,
|
|
287
|
-
topologyBodyIdsCount,
|
|
288
|
-
topologyJointsOffset,
|
|
289
|
-
topologyJointsCount,
|
|
290
|
-
topologyFluidIdsOffset,
|
|
291
|
-
topologyFluidIdsCount,
|
|
292
|
-
bodyDefinitionSignaturesOffset,
|
|
293
|
-
bodyDefinitionSignaturesCount,
|
|
294
|
-
jointDefinitionSignaturesOffset,
|
|
295
|
-
jointDefinitionSignaturesCount,
|
|
296
305
|
geometryForm,
|
|
297
306
|
strongMemoState,
|
|
298
307
|
strongMemoLimits,
|
|
@@ -300,6 +309,7 @@ inline void checkpointDataSchemaGuard(const CheckpointData& data) noexcept {
|
|
|
300
309
|
] = data;
|
|
301
310
|
static_cast<void>(world);
|
|
302
311
|
static_cast<void>(bodies);
|
|
312
|
+
static_cast<void>(staticSlab);
|
|
303
313
|
static_cast<void>(geometryRoot);
|
|
304
314
|
static_cast<void>(pose);
|
|
305
315
|
static_cast<void>(profile);
|
|
@@ -310,26 +320,14 @@ inline void checkpointDataSchemaGuard(const CheckpointData& data) noexcept {
|
|
|
310
320
|
static_cast<void>(nextFluidId);
|
|
311
321
|
static_cast<void>(jointsOffset);
|
|
312
322
|
static_cast<void>(jointsCount);
|
|
313
|
-
static_cast<void>(legacyGeometryOffset);
|
|
314
|
-
static_cast<void>(legacyGeometryCount);
|
|
315
323
|
static_cast<void>(contactCacheOffset);
|
|
316
324
|
static_cast<void>(contactCacheCount);
|
|
317
|
-
static_cast<void>(forcesOffset);
|
|
318
|
-
static_cast<void>(forcesCount);
|
|
319
325
|
static_cast<void>(tickForcesOffset);
|
|
320
326
|
static_cast<void>(tickForcesCount);
|
|
321
327
|
static_cast<void>(supportSpringsOffset);
|
|
322
328
|
static_cast<void>(supportSpringsCount);
|
|
323
329
|
static_cast<void>(supportForcesOffset);
|
|
324
330
|
static_cast<void>(supportForcesCount);
|
|
325
|
-
static_cast<void>(fluidsOffset);
|
|
326
|
-
static_cast<void>(fluidsCount);
|
|
327
|
-
static_cast<void>(surfaceVelocitiesOffset);
|
|
328
|
-
static_cast<void>(surfaceVelocitiesCount);
|
|
329
|
-
static_cast<void>(bodyMaterialsOffset);
|
|
330
|
-
static_cast<void>(bodyMaterialsCount);
|
|
331
|
-
static_cast<void>(bodyMaterialFramesOffset);
|
|
332
|
-
static_cast<void>(bodyMaterialFramesCount);
|
|
333
331
|
static_cast<void>(jointWarmStateOffset);
|
|
334
332
|
static_cast<void>(jointWarmStateCount);
|
|
335
333
|
static_cast<void>(contactEventsOffset);
|
|
@@ -340,16 +338,6 @@ inline void checkpointDataSchemaGuard(const CheckpointData& data) noexcept {
|
|
|
340
338
|
static_cast<void>(jointBreakEventsCount);
|
|
341
339
|
static_cast<void>(fluidInteractionsOffset);
|
|
342
340
|
static_cast<void>(fluidInteractionsCount);
|
|
343
|
-
static_cast<void>(topologyBodyIdsOffset);
|
|
344
|
-
static_cast<void>(topologyBodyIdsCount);
|
|
345
|
-
static_cast<void>(topologyJointsOffset);
|
|
346
|
-
static_cast<void>(topologyJointsCount);
|
|
347
|
-
static_cast<void>(topologyFluidIdsOffset);
|
|
348
|
-
static_cast<void>(topologyFluidIdsCount);
|
|
349
|
-
static_cast<void>(bodyDefinitionSignaturesOffset);
|
|
350
|
-
static_cast<void>(bodyDefinitionSignaturesCount);
|
|
351
|
-
static_cast<void>(jointDefinitionSignaturesOffset);
|
|
352
|
-
static_cast<void>(jointDefinitionSignaturesCount);
|
|
353
341
|
static_cast<void>(geometryForm);
|
|
354
342
|
static_cast<void>(strongMemoState);
|
|
355
343
|
static_cast<void>(strongMemoLimits);
|