@series-inc/rundot-syncplay 6.0.0-rc.79 → 6.0.0-rc.80
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/physics.cpp +259 -27
- package/core/src/physics/physics-profile-wasm-module.generated.mjs +4 -4
- package/core/src/physics/physics-profile.wasm +0 -0
- package/core/src/physics/physics-wasm-module.generated.mjs +4 -4
- package/core/src/physics/physics.wasm +0 -0
- package/core/src/physics2d/physics2d-wasm-module.generated.mjs +1 -1
- package/dist/physics/vehicle-state3d.js +150 -57
- package/package.json +4 -2
|
@@ -1386,8 +1386,28 @@ constexpr std::array<std::array<std::array<signed char, 2>, 4>, 6> kBox3dFaceCli
|
|
|
1386
1386
|
{{{1, 1}, {0, -1}, {1, -1}, {0, 1}}},
|
|
1387
1387
|
}};
|
|
1388
1388
|
|
|
1389
|
-
//
|
|
1390
|
-
|
|
1389
|
+
// Scaled tie band for the box-box face rules. The band is 1e-13 times the sum of the six half extents of the
|
|
1390
|
+
// two boxes. Why scaled: an exact tie in real arithmetic (two aligned faces) differs by rounding in binary64 after
|
|
1391
|
+
// the world translation, so a strict compare flips the chosen axis when the scene moves. A band of 1e-13 * size is
|
|
1392
|
+
// far above that rounding and far below any real overlap difference. Why not Box3D's rule: Box3D uses a strict
|
|
1393
|
+
// compare with no band (convex_manifold.c:1529) and flips here at float32. This is a documented departure. MuJoCo's
|
|
1394
|
+
// box-box collision uses a band of the same size (1e-13 times the sum of the half sizes, in double precision).
|
|
1395
|
+
constexpr double kBoxFaceTieScale = 1e-13;
|
|
1396
|
+
|
|
1397
|
+
// The scaled band of two box bodies: kBoxFaceTieScale times the sum of the six half extents (shape0..2 of each body).
|
|
1398
|
+
// Used by the face tie (boxBoxSpeculative) and by the speculative branch test of the contact solve (boxBandOf).
|
|
1399
|
+
double boxPairBand(const Body& a, const Body& b) {
|
|
1400
|
+
return kBoxFaceTieScale * (a.shape0 + a.shape1 + a.shape2 + b.shape0 + b.shape1 + b.shape2);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
// Branch band of a contact point: the Box3D test is s > 0 (contact_solver.c:448, :568, :767). A box pair in a resting
|
|
1404
|
+
// aligned stack has s = 0 in one scene and +-4e-16 after a world translation, so the test flips and the speculative
|
|
1405
|
+
// bias s / h jumps. A point is speculative only when s > band. This is a documented departure from Box3D, made for
|
|
1406
|
+
// the same reason as the face band (a scaled band for knife-edge ties). Non-box pairs keep the exact
|
|
1407
|
+
// Box3D test (band 0): their shape0..2 are not box half extents.
|
|
1408
|
+
double branchBandOf(const Body& a, const Body& b) {
|
|
1409
|
+
return (a.shape == ShapeKind::Box && b.shape == ShapeKind::Box) ? boxPairBand(a, b) : 0.0;
|
|
1410
|
+
}
|
|
1391
1411
|
|
|
1392
1412
|
Collision boxBoxSpeculative(const Body& a, const Body& b, const CollideParams& params) {
|
|
1393
1413
|
const double speculative = params.speculativeDistance;
|
|
@@ -1398,6 +1418,8 @@ Collision boxBoxSpeculative(const Body& a, const Body& b, const CollideParams& p
|
|
|
1398
1418
|
const std::array<double, 3> halfA{a.shape0, a.shape1, a.shape2};
|
|
1399
1419
|
const std::array<double, 3> halfB{b.shape0, b.shape1, b.shape2};
|
|
1400
1420
|
const Vec3 delta = subtractVec3(centerB, centerA);
|
|
1421
|
+
// The band uses the sum of all six half extents, so it does not depend on which box is larger or on the axis.
|
|
1422
|
+
const double faceTieBand = boxPairBand(a, b);
|
|
1401
1423
|
const auto extentA = [&](const Vec3& n) {
|
|
1402
1424
|
return halfA[0] * axisDelta(dotVec3(axesA[0], n)) + halfA[1] * axisDelta(dotVec3(axesA[1], n))
|
|
1403
1425
|
+ halfA[2] * axisDelta(dotVec3(axesA[2], n));
|
|
@@ -1407,8 +1429,10 @@ Collision boxBoxSpeculative(const Body& a, const Body& b, const CollideParams& p
|
|
|
1407
1429
|
+ halfB[2] * axisDelta(dotVec3(axesB[2], n));
|
|
1408
1430
|
};
|
|
1409
1431
|
// Face queries. The face of A with outward normal n has separation n.(cB - cA) - hA - extentB(n); the face of B
|
|
1410
|
-
// with outward normal n has n.(cA - cB) - hB - extentA(n). Faces are visited as axis 0..2, + then
|
|
1411
|
-
//
|
|
1432
|
+
// with outward normal n has n.(cA - cB) - hB - extentA(n). Faces are visited as axis 0..2, + then -. A later face
|
|
1433
|
+
// replaces the best only when it is larger by more than the band. Within the band the first (lowest index) face
|
|
1434
|
+
// wins. Reason: an exact tie between two faces of one box must give the same axis at every world position, so the
|
|
1435
|
+
// choice cannot follow rounding (Box3D keeps the first maximum with a strict compare, b3ComputeSeparatingAxis).
|
|
1412
1436
|
struct FaceQuery { double separation = -std::numeric_limits<double>::infinity(); std::uint32_t axis = 0; double sign = 1.0; };
|
|
1413
1437
|
const auto faceQuery = [&](const std::array<Vec3, 3>& axes, const std::array<double, 3>& half, const Vec3& toOther,
|
|
1414
1438
|
const auto& otherExtent) {
|
|
@@ -1417,7 +1441,7 @@ Collision boxBoxSpeculative(const Body& a, const Body& b, const CollideParams& p
|
|
|
1417
1441
|
for (const double sign : {1.0, -1.0}) {
|
|
1418
1442
|
const Vec3 n = scaleVec3(axes[axis], sign);
|
|
1419
1443
|
const double separation = dotVec3(n, toOther) - half[axis] - otherExtent(n);
|
|
1420
|
-
if (separation > best.separation) best = {separation, axis, sign};
|
|
1444
|
+
if (separation > best.separation + faceTieBand) best = {separation, axis, sign};
|
|
1421
1445
|
}
|
|
1422
1446
|
}
|
|
1423
1447
|
return best;
|
|
@@ -1483,11 +1507,12 @@ Collision boxBoxSpeculative(const Body& a, const Body& b, const CollideParams& p
|
|
|
1483
1507
|
// face; portal-review 12 (frictionless crates, two dynamic bodies) holds only with face B.
|
|
1484
1508
|
const bool fixedA = !a.dynamic;
|
|
1485
1509
|
const bool fixedB = !b.dynamic;
|
|
1486
|
-
// Two separations within
|
|
1487
|
-
//
|
|
1510
|
+
// Two separations within faceTieBand are a tie: two aligned faces differ by rounding in either direction after a
|
|
1511
|
+
// world translation. The tie rule (fixedA && !fixedB) depends only on the body flags, not on the position, so it is
|
|
1512
|
+
// translation invariant. A compound child has dynamic = false, so a child pair keeps face B on a tie (Box3D took
|
|
1488
1513
|
// the box face in the hit scene of box3d-multi-shape-gaps; it took the floor face for a single box,
|
|
1489
1514
|
// followups/harness/specband.c).
|
|
1490
|
-
const bool faceTie = std::abs(queryA.separation - queryB.separation) <=
|
|
1515
|
+
const bool faceTie = std::abs(queryA.separation - queryB.separation) <= faceTieBand;
|
|
1491
1516
|
const bool referenceIsA = faceTie ? (fixedA && !fixedB) : queryA.separation > queryB.separation;
|
|
1492
1517
|
const FaceQuery& query = referenceIsA ? queryA : queryB;
|
|
1493
1518
|
const double faceSeparation = query.separation;
|
|
@@ -5392,6 +5417,13 @@ struct ContinuousMember {
|
|
|
5392
5417
|
bool fast = false;
|
|
5393
5418
|
};
|
|
5394
5419
|
|
|
5420
|
+
// T19: the step context of the frozen-pair store (SolverStorage::frozenReuseContext); see frozenReuseContextOf.
|
|
5421
|
+
struct FrozenReuseContext {
|
|
5422
|
+
std::vector<std::array<std::uint64_t, 2>> shapeExclusions;
|
|
5423
|
+
std::vector<double> legacyGeometry;
|
|
5424
|
+
bool dynamicTreeEnabled = false;
|
|
5425
|
+
};
|
|
5426
|
+
|
|
5395
5427
|
struct SolverStorage {
|
|
5396
5428
|
std::vector<BroadphaseBounds> broadphaseBounds;
|
|
5397
5429
|
std::vector<std::uint32_t> broadphaseOrder;
|
|
@@ -5553,6 +5585,26 @@ struct SolverStorage {
|
|
|
5553
5585
|
std::uint64_t collideMemoOwner = 0;
|
|
5554
5586
|
std::uint64_t collideMemoGeneration = 0;
|
|
5555
5587
|
std::uint32_t collideMemoSlotEpoch = 0;
|
|
5588
|
+
// Frozen-pair collide results kept across steps (T19). Each entry holds the two body inputs and the path flags
|
|
5589
|
+
// of its collide, and the Collision it returned. A lookup compares them exactly (sameCollideInput, sameBits), so
|
|
5590
|
+
// a hit returns the value a live collide returns for the same inputs. The store is a pure function cache: it is
|
|
5591
|
+
// cleared by SolverStorage::invalidate (restore, import, edit, copy, body-set change) and when the step context
|
|
5592
|
+
// (frozenReuseContext) changes. It is never checkpoint or digest state.
|
|
5593
|
+
struct FrozenReuseEntry {
|
|
5594
|
+
std::uint64_t pairKey = 0;
|
|
5595
|
+
std::uint8_t flags = 0;
|
|
5596
|
+
CollideMemoBody bodyA;
|
|
5597
|
+
CollideMemoBody bodyB;
|
|
5598
|
+
Collision result;
|
|
5599
|
+
ContactShapeKey shapes;
|
|
5600
|
+
};
|
|
5601
|
+
std::vector<FrozenReuseEntry> frozenReuseEntries;
|
|
5602
|
+
// Open-addressed index into frozenReuseEntries (CollideMemoSlot: epoch and entry index). A slot is valid only when
|
|
5603
|
+
// its epoch equals frozenReuseSlotEpoch, so a clear is one epoch change, not a rebuild.
|
|
5604
|
+
std::vector<CollideMemoSlot> frozenReuseSlots;
|
|
5605
|
+
std::uint32_t frozenReuseSlotEpoch = 1;
|
|
5606
|
+
FrozenReuseContext frozenReuseContext;
|
|
5607
|
+
bool frozenReuseContextValid = false;
|
|
5556
5608
|
struct RestingSubstepPairCacheEntry {
|
|
5557
5609
|
std::uint64_t pairKey = 0;
|
|
5558
5610
|
std::uint32_t outputIndex = 0;
|
|
@@ -6920,6 +6972,16 @@ void nativeTickTranslate(Body& body, NativeTickChart& chart, const std::array<do
|
|
|
6920
6972
|
}
|
|
6921
6973
|
|
|
6922
6974
|
|
|
6975
|
+
// T19: drops every frozen-pair result. A new epoch hides the slots of the old entries; on wrap the slots are reset,
|
|
6976
|
+
// as the collide memo does, so a slot of an old epoch can never read as current.
|
|
6977
|
+
void clearFrozenReuseStore(SolverStorage& storage) noexcept {
|
|
6978
|
+
storage.frozenReuseEntries.clear();
|
|
6979
|
+
if (++storage.frozenReuseSlotEpoch == 0) {
|
|
6980
|
+
std::fill(storage.frozenReuseSlots.begin(), storage.frozenReuseSlots.end(), SolverStorage::CollideMemoSlot{});
|
|
6981
|
+
storage.frozenReuseSlotEpoch = 1;
|
|
6982
|
+
}
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6923
6985
|
void SolverStorage::invalidate(bool keepBroadphaseTree) noexcept {
|
|
6924
6986
|
for (auto& mobility : constraintMobility) mobility.angular = {};
|
|
6925
6987
|
preparedJointGeometry.clear();
|
|
@@ -6943,6 +7005,9 @@ void SolverStorage::invalidate(bool keepBroadphaseTree) noexcept {
|
|
|
6943
7005
|
// The collide() memo keeps its capacity: a new operation starts it empty (see collide()), so a
|
|
6944
7006
|
// restore does not free it and the next steps do not allocate it again.
|
|
6945
7007
|
collideMemoOwner = 0;
|
|
7008
|
+
// The frozen-pair store (T19) is a cache: every state change drops it.
|
|
7009
|
+
clearFrozenReuseStore(*this);
|
|
7010
|
+
frozenReuseContextValid = false;
|
|
6946
7011
|
restingSubstepPairCount = 0;
|
|
6947
7012
|
restingSubstepPairCursor = 0;
|
|
6948
7013
|
firstSubstepOfTick = false;
|
|
@@ -8617,6 +8682,8 @@ constexpr std::size_t kCollideMemoInitialSlots = 256;
|
|
|
8617
8682
|
// Caps per operation. Past a cap, collide() computes without the memo; the result is the same.
|
|
8618
8683
|
constexpr std::size_t kCollideMemoMaximumBodies = 4096;
|
|
8619
8684
|
constexpr std::size_t kCollideMemoMaximumPairs = 8192;
|
|
8685
|
+
// T19: the frozen-pair store keeps at most this many results; past it a collide runs live (same result).
|
|
8686
|
+
constexpr std::size_t kFrozenReuseMaximumEntries = 8192;
|
|
8620
8687
|
|
|
8621
8688
|
std::uint64_t mixCollideMemoKey(std::uint64_t value) {
|
|
8622
8689
|
value ^= value >> 33;
|
|
@@ -8709,6 +8776,17 @@ void beginCollideMemo(SolverOperation& operation) {
|
|
|
8709
8776
|
}
|
|
8710
8777
|
}
|
|
8711
8778
|
|
|
8779
|
+
// The path flags of a collide: the mode of the narrowphase that the result depends on. collide() and the frozen-pair
|
|
8780
|
+
// store (frozenPairCollide) use the same value.
|
|
8781
|
+
std::uint8_t collidePathFlags(const SolverOperation& operation) {
|
|
8782
|
+
const bool largeStack = !operation.fixedAxisQueryContacts
|
|
8783
|
+
&& usesStackSolverPath(operation, static_cast<std::uint32_t>(operation.storage.soaBodies.size()));
|
|
8784
|
+
const bool smallWorld = !operation.fixedAxisQueryContacts && (largeStack || isSmallDynamicWorld(operation));
|
|
8785
|
+
return static_cast<std::uint8_t>((operation.fixedAxisQueryContacts ? 1 : 0)
|
|
8786
|
+
| (largeStack ? 2 : 0) | (smallWorld ? 4 : 0) | (operation.proxyHook != nullptr ? 8 : 0)
|
|
8787
|
+
| (nativePairFrameActive(operation) ? 16 : 0));
|
|
8788
|
+
}
|
|
8789
|
+
|
|
8712
8790
|
// The index of the kept body equal to this one (sameCollideInput), added if new; kCollideMemoFull
|
|
8713
8791
|
// when the body is new and the cap is reached.
|
|
8714
8792
|
std::uint32_t collideMemoBody(SolverOperation& operation, const Body& body) {
|
|
@@ -8843,12 +8921,7 @@ Collision collide(SolverOperation& operation, const Body& a, const Body& b) {
|
|
|
8843
8921
|
if (operation.collideMemoGeneration == 0 || storage.collideMemoOwner != operation.collideMemoGeneration) {
|
|
8844
8922
|
beginCollideMemo(operation);
|
|
8845
8923
|
}
|
|
8846
|
-
const
|
|
8847
|
-
&& usesStackSolverPath(operation, static_cast<std::uint32_t>(storage.soaBodies.size()));
|
|
8848
|
-
const bool smallWorld = !operation.fixedAxisQueryContacts && (largeStack || isSmallDynamicWorld(operation));
|
|
8849
|
-
const std::uint8_t flags = static_cast<std::uint8_t>((operation.fixedAxisQueryContacts ? 1 : 0)
|
|
8850
|
-
| (largeStack ? 2 : 0) | (smallWorld ? 4 : 0) | (operation.proxyHook != nullptr ? 8 : 0)
|
|
8851
|
-
| (nativePairFrameActive(operation) ? 16 : 0));
|
|
8924
|
+
const std::uint8_t flags = collidePathFlags(operation);
|
|
8852
8925
|
const std::uint32_t bodyA = collideMemoBody(operation, a);
|
|
8853
8926
|
const std::uint32_t bodyB = bodyA == kCollideMemoFull ? kCollideMemoFull : collideMemoBody(operation, b);
|
|
8854
8927
|
if (bodyB == kCollideMemoFull) {
|
|
@@ -8903,6 +8976,29 @@ Collision collideUncached(SolverOperation& operation, const Body& a, const Body&
|
|
|
8903
8976
|
return result;
|
|
8904
8977
|
}
|
|
8905
8978
|
|
|
8979
|
+
// T19: the step context that a frozen collide reads and the body key does not hold: the shape exclusions, the legacy
|
|
8980
|
+
// geometry values, and the dynamic-tree mode (see SolverStorage::frozenReuseEntries). The store keeps a copy of it and
|
|
8981
|
+
// compares it exactly, element by element, so no hash decides a hit.
|
|
8982
|
+
bool sameFrozenReuseContext(const FrozenReuseContext& stored, const SolverOperation& operation) {
|
|
8983
|
+
if (stored.dynamicTreeEnabled != operation.inputs.dynamicTreeEnabled) return false;
|
|
8984
|
+
const auto& exclusions = operation.inputs.shapeExclusions;
|
|
8985
|
+
if (stored.shapeExclusions.size() != exclusions.size()
|
|
8986
|
+
|| !std::equal(exclusions.begin(), exclusions.end(), stored.shapeExclusions.begin())) return false;
|
|
8987
|
+
const auto& geometry = operation.inputs.geometry;
|
|
8988
|
+
if (stored.legacyGeometry.size() != geometry.size()) return false;
|
|
8989
|
+
for (std::size_t index = 0; index < geometry.size(); ++index)
|
|
8990
|
+
if (!sameBits(stored.legacyGeometry[index], geometry[index])) return false;
|
|
8991
|
+
return true;
|
|
8992
|
+
}
|
|
8993
|
+
|
|
8994
|
+
FrozenReuseContext frozenReuseContextOf(const SolverOperation& operation) {
|
|
8995
|
+
FrozenReuseContext context;
|
|
8996
|
+
context.dynamicTreeEnabled = operation.inputs.dynamicTreeEnabled;
|
|
8997
|
+
context.shapeExclusions.assign(operation.inputs.shapeExclusions.begin(), operation.inputs.shapeExclusions.end());
|
|
8998
|
+
context.legacyGeometry.assign(operation.inputs.geometry.begin(), operation.inputs.geometry.end());
|
|
8999
|
+
return context;
|
|
9000
|
+
}
|
|
9001
|
+
|
|
8906
9002
|
// collide() with parameters (plan §2.3). Default parameters are collide() itself, memo included.
|
|
8907
9003
|
// Other parameters bypass the memo, so a result made with other parameters is never returned.
|
|
8908
9004
|
// speculativeDistance > 0 is for speculativeShapePair only: every point with separation
|
|
@@ -8937,8 +9033,15 @@ Collision collideSpeculative(SolverOperation& operation, const Body& a, const Bo
|
|
|
8937
9033
|
result.penetration = deepest;
|
|
8938
9034
|
RUNDOT_PHYSICS_DEBUG_ASSERT(result.pointDepthCount == result.pointCount);
|
|
8939
9035
|
RUNDOT_PHYSICS_DEBUG_ASSERT(result.pointCount >= 1 && result.pointCount <= result.points.size());
|
|
8940
|
-
|
|
8941
|
-
|
|
9036
|
+
// A Box3D speculative manifold may hold points separated by more than the speculative distance: it keeps up to 4
|
|
9037
|
+
// clip points unchanged (convex_manifold.c:799-806) and drops the manifold only when its deepest point is at or
|
|
9038
|
+
// beyond the speculative distance (convex_manifold.c:1132). So check that bound, not every point.
|
|
9039
|
+
{
|
|
9040
|
+
double minSeparation = std::numeric_limits<double>::infinity();
|
|
9041
|
+
for (std::uint32_t index = 0; index < result.pointCount; ++index)
|
|
9042
|
+
minSeparation = std::min(minSeparation, -result.pointDepths[index]);
|
|
9043
|
+
RUNDOT_PHYSICS_DEBUG_ASSERT(minSeparation <= params.speculativeDistance + 2e-6);
|
|
9044
|
+
}
|
|
8942
9045
|
}
|
|
8943
9046
|
return result;
|
|
8944
9047
|
}
|
|
@@ -10790,6 +10893,88 @@ Collision collideShapeFiltered(SolverOperation& operation, const Body& a, const
|
|
|
10790
10893
|
return best;
|
|
10791
10894
|
}
|
|
10792
10895
|
|
|
10896
|
+
// T19: the collide of a frozen pair (collideShapeFiltered), reused across steps. A frozen pair keeps its bodies, so
|
|
10897
|
+
// its collide result is the same while every input it reads is the same. The store (SolverStorage::frozenReuse*) keeps
|
|
10898
|
+
// the result with the two body inputs, the chart values and the path flags. A hit requires the same pair key and flags,
|
|
10899
|
+
// and both bodies equal by sameCollideInput, the chart values equal by bits, and the step context equal (the shape
|
|
10900
|
+
// exclusions, the legacy geometry values, the dynamic-tree mode). Those are the inputs the collide reads.
|
|
10901
|
+
//
|
|
10902
|
+
// A result is kept only when its live call had no side effect on the operation: no triangle work charged, no staging
|
|
10903
|
+
// bytes, no arithmetic state created (collideSideEffects). Such a call's result depends only on its inputs, so a hit
|
|
10904
|
+
// returns what the live call would return, and leaves the operation exactly as the live call would (no change).
|
|
10905
|
+
// A call with a side effect is never stored and always runs live.
|
|
10906
|
+
//
|
|
10907
|
+
// Returns the result; *shapes gets the contact shape key of the result.
|
|
10908
|
+
Collision frozenPairCollide(SolverOperation& operation, const Body& a, const Body& b, ContactShapeKey* shapes,
|
|
10909
|
+
std::uint32_t first, std::uint32_t second) {
|
|
10910
|
+
auto& storage = operation.storage;
|
|
10911
|
+
const std::uint64_t pairKey = (static_cast<std::uint64_t>(std::min(first, second)) << 32) | std::max(first, second);
|
|
10912
|
+
const std::uint8_t flags = collidePathFlags(operation);
|
|
10913
|
+
// The step context was checked at the start of the step (stepSoftContactBodies); the store holds only its results.
|
|
10914
|
+
const NativeTickChart* chartA = nativeTickChartFor(operation, a);
|
|
10915
|
+
const NativeTickChart* chartB = nativeTickChartFor(operation, b);
|
|
10916
|
+
const CollideMemoQuery queryA{a, chartA};
|
|
10917
|
+
const CollideMemoQuery queryB{b, chartB};
|
|
10918
|
+
const auto sameChart = [](const std::optional<std::array<double, 6>>& kept, const CollideMemoQuery& query) {
|
|
10919
|
+
if (kept.has_value() != (query.chart != nullptr)) return false;
|
|
10920
|
+
if (query.chart) for (unsigned axis = 0; axis < 6; ++axis)
|
|
10921
|
+
if (!sameBits((*kept)[axis], query.chartValue(axis))) return false;
|
|
10922
|
+
return true;
|
|
10923
|
+
};
|
|
10924
|
+
// The slot index is a hash of the pair key and flags. A slot is only a candidate: the bodies and chart values are
|
|
10925
|
+
// compared exactly, so a hash collision never gives a hit.
|
|
10926
|
+
const std::uint64_t hash = collideMemoPairHash(static_cast<std::uint32_t>(pairKey >> 32),
|
|
10927
|
+
static_cast<std::uint32_t>(pairKey & 0xffffffffu), flags);
|
|
10928
|
+
const auto matches = [&](std::uint32_t index) {
|
|
10929
|
+
const auto& entry = storage.frozenReuseEntries[index];
|
|
10930
|
+
return entry.pairKey == pairKey && entry.flags == flags;
|
|
10931
|
+
};
|
|
10932
|
+
// The entry of this pair, when one exists but its inputs changed: a new result replaces it in place, so the pair can
|
|
10933
|
+
// be reused again after it moves and sleeps again, and the store does not grow with stale entries.
|
|
10934
|
+
std::optional<std::uint32_t> staleIndex;
|
|
10935
|
+
if (!storage.frozenReuseSlots.empty()) {
|
|
10936
|
+
const std::size_t slot = findCollideMemoSlot(storage.frozenReuseSlots, storage.frozenReuseSlotEpoch, hash, matches);
|
|
10937
|
+
if (storage.frozenReuseSlots[slot].epoch == storage.frozenReuseSlotEpoch) {
|
|
10938
|
+
staleIndex = storage.frozenReuseSlots[slot].index;
|
|
10939
|
+
const auto& entry = storage.frozenReuseEntries[*staleIndex];
|
|
10940
|
+
if (sameCollideInput(entry.bodyA.body, a) && sameChart(entry.bodyA.chart, queryA)
|
|
10941
|
+
&& sameCollideInput(entry.bodyB.body, b) && sameChart(entry.bodyB.chart, queryB)) {
|
|
10942
|
+
if (shapes != nullptr) *shapes = entry.shapes;
|
|
10943
|
+
return entry.result;
|
|
10944
|
+
}
|
|
10945
|
+
}
|
|
10946
|
+
}
|
|
10947
|
+
ContactShapeKey liveShapes;
|
|
10948
|
+
const CollideSideEffects before = collideSideEffects(operation);
|
|
10949
|
+
Collision result = collideShapeFiltered(operation, a, b, &liveShapes, first, second);
|
|
10950
|
+
if (shapes != nullptr) *shapes = liveShapes;
|
|
10951
|
+
const bool noSideEffect = collideSideEffects(operation) == before;
|
|
10952
|
+
const bool storable = (std::holds_alternative<WorldContactBasis>(result.coordinates)
|
|
10953
|
+
|| std::holds_alternative<NativePairManifoldBasis>(result.coordinates));
|
|
10954
|
+
if (!noSideEffect || !storable) return result;
|
|
10955
|
+
if (staleIndex) {
|
|
10956
|
+
storage.frozenReuseEntries[*staleIndex] = {pairKey, flags, queryA.snapshot(), queryB.snapshot(), result, liveShapes};
|
|
10957
|
+
return result;
|
|
10958
|
+
}
|
|
10959
|
+
if (storage.frozenReuseEntries.size() >= kFrozenReuseMaximumEntries) return result;
|
|
10960
|
+
// Insert. The slot table keeps at most half full; it grows at the same rule as the collide memo.
|
|
10961
|
+
auto& slots = storage.frozenReuseSlots;
|
|
10962
|
+
const std::uint32_t epoch = storage.frozenReuseSlotEpoch;
|
|
10963
|
+
if (slots.empty()) slots.resize(kCollideMemoInitialSlots);
|
|
10964
|
+
const std::uint32_t index = static_cast<std::uint32_t>(storage.frozenReuseEntries.size());
|
|
10965
|
+
storage.frozenReuseEntries.push_back({pairKey, flags, queryA.snapshot(), queryB.snapshot(), result, liveShapes});
|
|
10966
|
+
if ((storage.frozenReuseEntries.size()) * 2 > slots.size()) {
|
|
10967
|
+
growCollideMemoSlots(slots, epoch, storage.frozenReuseEntries.size() - 1, [&](std::size_t entryIndex) {
|
|
10968
|
+
const auto& kept = storage.frozenReuseEntries[entryIndex];
|
|
10969
|
+
return collideMemoPairHash(static_cast<std::uint32_t>(kept.pairKey >> 32),
|
|
10970
|
+
static_cast<std::uint32_t>(kept.pairKey & 0xffffffffu), kept.flags);
|
|
10971
|
+
});
|
|
10972
|
+
}
|
|
10973
|
+
const std::size_t slot = findCollideMemoSlot(slots, epoch, hash, [](std::uint32_t) { return false; });
|
|
10974
|
+
slots[slot] = {epoch, index};
|
|
10975
|
+
return result;
|
|
10976
|
+
}
|
|
10977
|
+
|
|
10793
10978
|
// The manifolds of a body pair, one per shape pair (plan §2.12), written to the caller's buffer in a
|
|
10794
10979
|
// fixed order; no allocation in a steady step. Returns the number of manifolds that hit, or
|
|
10795
10980
|
// kShapePairManifoldOverflow when the buffer is empty. With a speculative distance: a pair with a
|
|
@@ -19513,24 +19698,61 @@ std::int32_t applySupportSubstep(SolverOperation& operation, std::uint32_t bodyC
|
|
|
19513
19698
|
if (operation.inputs.supportSprings.empty() && operation.inputs.supportForces.empty()) return 0;
|
|
19514
19699
|
const double h = substepOptions.dtTicks / static_cast<double>(substepOptions.substeps);
|
|
19515
19700
|
Body* bodies = operation.storage.soaBodies.data();
|
|
19516
|
-
|
|
19517
|
-
|
|
19701
|
+
// Spring rows are applied in list order. Each row reads the chassis velocity that the rows before it left.
|
|
19702
|
+
// A mirror pair of rows (same body and support, equal |x| and z, opposite x) is the two springs of one axle.
|
|
19703
|
+
// Sampling the first spring and then the second makes the second read a velocity the first one changed.
|
|
19704
|
+
// So a pair samples both springs from one velocity, and then applies both. Other rows keep their order.
|
|
19705
|
+
const auto isMirrorSpringPair = [](const SolverSupportSpring& a, const SolverSupportSpring& b) {
|
|
19706
|
+
return a.body == b.body && a.support == b.support
|
|
19707
|
+
&& std::abs(a.bodyLocalPoint[0]) > 1e-9
|
|
19708
|
+
&& std::abs(std::abs(a.bodyLocalPoint[0]) - std::abs(b.bodyLocalPoint[0])) <= 1e-9
|
|
19709
|
+
&& std::abs(a.bodyLocalPoint[2] - b.bodyLocalPoint[2]) <= 1e-9
|
|
19710
|
+
&& (a.bodyLocalPoint[0] > 0.0) != (b.bodyLocalPoint[0] > 0.0);
|
|
19711
|
+
};
|
|
19712
|
+
// Sample status: 0 = sampled (apply it), 1 = sleeping chassis (skip it), 2 = stop the step with status 7.
|
|
19713
|
+
const auto sampleSpring = [&](const SolverSupportSpring& row, SupportSpringSample& sample) -> int {
|
|
19714
|
+
if (row.body >= bodyCount || row.support >= bodyCount) return 2;
|
|
19518
19715
|
Body& chassis = bodies[row.body];
|
|
19519
19716
|
Body& support = bodies[row.support];
|
|
19520
|
-
if (chassis.sleeping)
|
|
19717
|
+
if (chassis.sleeping) return 1;
|
|
19521
19718
|
const SurfaceVelocityConfig* chassisSurf = row.body < operation.inputs.baseSurfaces.size()
|
|
19522
19719
|
? &operation.inputs.baseSurfaces[row.body] : nullptr;
|
|
19523
19720
|
const SurfaceVelocityConfig* supportSurf = row.support < operation.inputs.baseSurfaces.size()
|
|
19524
19721
|
? &operation.inputs.baseSurfaces[row.support] : nullptr;
|
|
19525
|
-
|
|
19722
|
+
sample = sampleSupportSpring(chassis, support, {
|
|
19526
19723
|
row.bodyLocalPoint, row.supportLocalPoint, row.supportLocalNormal,
|
|
19527
19724
|
row.compression, row.travel, row.stiffness, row.damping,
|
|
19528
19725
|
}, h, chassisSurf, supportSurf);
|
|
19529
|
-
|
|
19726
|
+
return sample.finiteForce ? 0 : 2;
|
|
19727
|
+
};
|
|
19728
|
+
const auto applySpring = [&](const SolverSupportSpring& row, const SupportSpringSample& sample) -> bool {
|
|
19729
|
+
Body& chassis = bodies[row.body];
|
|
19730
|
+
Body& support = bodies[row.support];
|
|
19530
19731
|
const Vec3 force = scaleVec3(Vec3{sample.normal[0], sample.normal[1], sample.normal[2]}, sample.force);
|
|
19531
19732
|
const Vec3 point{sample.midpoint[0], sample.midpoint[1], sample.midpoint[2]};
|
|
19532
|
-
if (!integrateSupportForce(chassis, constraintBodyMobility(chassis, true), force, point, h)) return
|
|
19533
|
-
|
|
19733
|
+
if (!integrateSupportForce(chassis, constraintBodyMobility(chassis, true), force, point, h)) return false;
|
|
19734
|
+
return integrateSupportForce(support, constraintBodyMobility(support, true), scaleVec3(force, -1.0), point, h);
|
|
19735
|
+
};
|
|
19736
|
+
const auto& springs = operation.inputs.supportSprings;
|
|
19737
|
+
for (std::size_t i = 0; i < springs.size(); i += 1) {
|
|
19738
|
+
const SolverSupportSpring& row = springs[i];
|
|
19739
|
+
if (i + 1 < springs.size() && isMirrorSpringPair(row, springs[i + 1])) {
|
|
19740
|
+
const SolverSupportSpring& other = springs[i + 1];
|
|
19741
|
+
SupportSpringSample first{};
|
|
19742
|
+
SupportSpringSample second{};
|
|
19743
|
+
const int firstStatus = sampleSpring(row, first);
|
|
19744
|
+
const int secondStatus = sampleSpring(other, second);
|
|
19745
|
+
if (firstStatus == 2 || secondStatus == 2) return 7;
|
|
19746
|
+
if (firstStatus == 0 && !applySpring(row, first)) return 7;
|
|
19747
|
+
if (secondStatus == 0 && !applySpring(other, second)) return 7;
|
|
19748
|
+
i += 1;
|
|
19749
|
+
continue;
|
|
19750
|
+
}
|
|
19751
|
+
SupportSpringSample sample{};
|
|
19752
|
+
const int status = sampleSpring(row, sample);
|
|
19753
|
+
if (status == 2) return 7;
|
|
19754
|
+
if (status == 1) continue;
|
|
19755
|
+
if (!applySpring(row, sample)) return 7;
|
|
19534
19756
|
}
|
|
19535
19757
|
for (const SolverSupportForce& row : operation.inputs.supportForces) {
|
|
19536
19758
|
if (row.body >= bodyCount || row.support >= bodyCount) return 7;
|
|
@@ -21614,6 +21836,12 @@ std::int32_t stepSoftContactBodies(SolverOperation& operation, std::uint32_t bod
|
|
|
21614
21836
|
operation.storage.contactConstraintCount = 0;
|
|
21615
21837
|
operation.storage.sleepPairCount = 0;
|
|
21616
21838
|
operation.storage.stepCounters = {};
|
|
21839
|
+
// T19: the frozen-pair store is valid only for the step context it was filled in. Checked once per step.
|
|
21840
|
+
if (!operation.storage.frozenReuseContextValid || !sameFrozenReuseContext(operation.storage.frozenReuseContext, operation)) {
|
|
21841
|
+
clearFrozenReuseStore(operation.storage);
|
|
21842
|
+
operation.storage.frozenReuseContext = frozenReuseContextOf(operation);
|
|
21843
|
+
operation.storage.frozenReuseContextValid = true;
|
|
21844
|
+
}
|
|
21617
21845
|
operation.storage.stepCounters.substepCount = substeps;
|
|
21618
21846
|
operation.storage.sweepPairsReady = false;
|
|
21619
21847
|
operation.storage.broadphaseBoundsReady = false;
|
|
@@ -22091,7 +22319,7 @@ std::int32_t stepSoftContactBodies(SolverOperation& operation, std::uint32_t bod
|
|
|
22091
22319
|
const bool canMoveB = canMove(second);
|
|
22092
22320
|
if (!canMoveA && !canMoveB) {
|
|
22093
22321
|
ContactShapeKey frozenShapes;
|
|
22094
|
-
Collision contact =
|
|
22322
|
+
Collision contact = frozenPairCollide(operation, a, b, &frozenShapes, first, second);
|
|
22095
22323
|
applyMeshRestOffset(contact, a, b);
|
|
22096
22324
|
// Box3D keeps the contacts of a sleeping island as they are and collides nothing for them (solver_set.c). A
|
|
22097
22325
|
// frozen pair with cache rows keeps them, also when collide() reports no overlap: a body that rests on a mesh
|
|
@@ -23042,13 +23270,15 @@ std::int32_t stepSoftContactBodies(SolverOperation& operation, std::uint32_t bod
|
|
|
23042
23270
|
Manifold& m = manifolds[manifoldIndex];
|
|
23043
23271
|
const ProxyBodySync proxySync{operation.proxyHook, bodies, m.bodyA, m.bodyB};
|
|
23044
23272
|
const Softness& soft = m.staticSoftness ? policy.staticSoft : policy.dynamicSoft;
|
|
23273
|
+
// Speculative only above the branch band (branchBandOf). Box3D tests s > 0 (contact_solver.c:448).
|
|
23274
|
+
const double branchBand = branchBandOf(bodies[m.bodyA], bodies[m.bodyB]);
|
|
23045
23275
|
for (std::uint32_t i = 0; i < m.pointCount; ++i) {
|
|
23046
23276
|
Point& p = m.points[i];
|
|
23047
23277
|
const double s = currentSeparation(m, p);
|
|
23048
23278
|
double bias = 0.0;
|
|
23049
23279
|
double massScale = 1.0;
|
|
23050
23280
|
double impulseScale = 0.0;
|
|
23051
|
-
if (s >
|
|
23281
|
+
if (s > branchBand) {
|
|
23052
23282
|
bias = s * invH;
|
|
23053
23283
|
} else {
|
|
23054
23284
|
bias = std::max(soft.massScale * soft.biasRate * s, -policy.maxPushSpeed);
|
|
@@ -23174,10 +23404,11 @@ std::int32_t stepSoftContactBodies(SolverOperation& operation, std::uint32_t bod
|
|
|
23174
23404
|
const ProxyBodySync proxySync{operation.proxyHook, bodies, m.bodyA, m.bodyB};
|
|
23175
23405
|
double totalNormal = 0.0;
|
|
23176
23406
|
double twistLimit = 0.0;
|
|
23407
|
+
const double branchBand = branchBandOf(bodies[m.bodyA], bodies[m.bodyB]);
|
|
23177
23408
|
for (std::uint32_t i = 0; i < m.pointCount; ++i) {
|
|
23178
23409
|
Point& p = m.points[i];
|
|
23179
23410
|
const double s = currentSeparation(m, p);
|
|
23180
|
-
const double bias = s >
|
|
23411
|
+
const double bias = s > branchBand ? s * invH : 0.0;
|
|
23181
23412
|
const double vn = normalVelocity(m, p);
|
|
23182
23413
|
const double delta = -p.normalMass * (vn + bias);
|
|
23183
23414
|
const double next = std::max(p.normalImpulse + delta, 0.0);
|
|
@@ -23289,6 +23520,7 @@ std::int32_t stepSoftContactBodies(SolverOperation& operation, std::uint32_t bod
|
|
|
23289
23520
|
for (Manifold& m : manifolds) {
|
|
23290
23521
|
if (m.restitution == 0.0) continue;
|
|
23291
23522
|
const ProxyBodySync proxySync{operation.proxyHook, bodies, m.bodyA, m.bodyB};
|
|
23523
|
+
const double branchBand = branchBandOf(bodies[m.bodyA], bodies[m.bodyB]);
|
|
23292
23524
|
for (std::uint32_t i = 0; i < m.pointCount; ++i) {
|
|
23293
23525
|
Point& p = m.points[i];
|
|
23294
23526
|
const double compression = p.totalNormalImpulse - p.restitutionImpulse;
|
|
@@ -23298,7 +23530,7 @@ std::int32_t stepSoftContactBodies(SolverOperation& operation, std::uint32_t bod
|
|
|
23298
23530
|
bias = m.restitution * p.relativeVelocity;
|
|
23299
23531
|
} else {
|
|
23300
23532
|
const double s = currentSeparation(m, p);
|
|
23301
|
-
bias = s >
|
|
23533
|
+
bias = s > branchBand ? s * invH : 0.0;
|
|
23302
23534
|
}
|
|
23303
23535
|
const double vn = normalVelocity(m, p);
|
|
23304
23536
|
double delta = std::max(p.normalImpulse - p.normalMass * (vn + bias), 0.0) - p.normalImpulse;
|
|
@@ -27,10 +27,10 @@ export const physicsProfileWasmMetadata = Object.freeze({
|
|
|
27
27
|
"compiler": "em++",
|
|
28
28
|
"emccVersion": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 6.0.3-git",
|
|
29
29
|
"compilerVersion": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 6.0.3-git",
|
|
30
|
-
"sourceHash": "
|
|
31
|
-
"wasmSha256": "
|
|
30
|
+
"sourceHash": "b6fa7feaadf7bfdc744bab6c7a214558880ce4fc8fbad414208b2899a3fc5aac",
|
|
31
|
+
"wasmSha256": "ea532b0c091f843ab28d65e21d371f430d9cbca55189019bb57be3d569fc69f5",
|
|
32
32
|
"artifact": "profile",
|
|
33
|
-
"packageVersion": "6.0.0-rc.
|
|
33
|
+
"packageVersion": "6.0.0-rc.80",
|
|
34
34
|
"compilerFlags": [
|
|
35
35
|
"-std=c++20",
|
|
36
36
|
"-O3",
|
|
@@ -50,7 +50,7 @@ export const physicsProfileWasmMetadata = Object.freeze({
|
|
|
50
50
|
"-sSTACK_SIZE=1048576",
|
|
51
51
|
"-sEXPORTED_FUNCTIONS=[\"_malloc\",\"_free\",\"_rundot_kinetix_ext_voxel_abi_version\",\"_rundot_kinetix_ext_voxel_child_stride\",\"_rundot_kinetix_ext_voxel_stats_stride\",\"_rundot_kinetix_ext_voxel_subchunk_stride\",\"_rundot_kinetix_ext_voxel_ray_hit_stride\",\"_rundot_kinetix_ext_voxel_seam_result_stride\",\"_rundot_kinetix_ext_voxel_mass_properties_stride\",\"_rundot_kinetix_ext_voxel_mass_properties\",\"_rundot_kinetix_ext_voxel_scratch_size\",\"_rundot_kinetix_ext_voxel_cook_chunk\",\"_rundot_kinetix_ext_voxel_carve\",\"_rundot_kinetix_ext_voxel_incremental_cook\",\"_rundot_kinetix_ext_voxel_split_components\",\"_rundot_kinetix_ext_voxel_incremental_slice\",\"_rundot_kinetix_ext_voxel_raycast_dda\",\"_rundot_kinetix_ext_voxel_seam_query\",\"_rundot_kinetix_world_abi_version\",\"_rundot_kinetix_numeric_environment_valid\",\"_rundot_kinetix_world_joint_warm_state_stride\",\"_rundot_kinetix_world_topology_abi_version\",\"_rundot_kinetix_world_topology_geometry_abi_version\",\"_rundot_kinetix_world_topology_geometry_command_stride\",\"_rundot_kinetix_world_topology_command_stride\",\"_rundot_kinetix_world_topology_result_stride\",\"_rundot_kinetix_world_topology_info_stride\",\"_rundot_kinetix_world_topology_max_commands\",\"_rundot_kinetix_world_topology_body_id_stride\",\"_rundot_kinetix_world_topology_joint_identity_stride\",\"_rundot_kinetix_world_topology_fluid_id_stride\",\"_rundot_kinetix_world_apply_topology_batch\",\"_rundot_kinetix_world_apply_topology_geometry_batch\",\"_rundot_kinetix_world_prepare_topology_edit\",\"_rundot_kinetix_world_copy_topology_edit_removed\",\"_rundot_kinetix_world_commit_topology_edit\",\"_rundot_kinetix_world_abandon_topology_edit\",\"_rundot_kinetix_world_body_geometry_info\",\"_rundot_kinetix_world_body_geometry_digest\",\"_rundot_kinetix_world_set_contact_groups\",\"_rundot_kinetix_world_copy_body_geometry\",\"_rundot_kinetix_world_topology_info\",\"_rundot_kinetix_world_copy_topology\",\"_rundot_kinetix_world_body_exists\",\"_rundot_kinetix_world_joint_exists\",\"_rundot_kinetix_world_fluid_exists\",\"_rundot_kinetix_world_read_body\",\"_rundot_kinetix_world_install_contact_materials\",\"_rundot_kinetix_world_read_material_name\",\"_rundot_kinetix_world_read_body_material\",\"_rundot_kinetix_world_read_body_filter\",\"_rundot_kinetix_world_read_body_bounds\",\"_rundot_kinetix_world_query_body\",\"_rundot_kinetix_world_query_hull\",\"_rundot_kinetix_world_resolve_contact_material\",\"_rundot_kinetix_world_read_joint\",\"_rundot_kinetix_world_update_joint\",\"_rundot_kinetix_world_read_joint_kinematics\",\"_rundot_kinetix_world_copy_joint_events\",\"_rundot_kinetix_world_read_fluid\",\"_rundot_kinetix_world_contact_output_info\",\"_rundot_kinetix_world_copy_contact_output\",\"_rundot_kinetix_world_select_contacts_info\",\"_rundot_kinetix_world_copy_selected_contacts\",\"_rundot_kinetix_world_body_move_event_count\",\"_rundot_kinetix_world_copy_body_move_events\",\"_rundot_kinetix_world_copy_contact_material_output\",\"_rundot_kinetix_world_joint_output_info\",\"_rundot_kinetix_world_copy_joint_output\",\"_rundot_kinetix_world_fluid_interaction_info\",\"_rundot_kinetix_world_copy_fluid_interactions\",\"_rundot_kinetix_world_max_handles\",\"_rundot_kinetix_world_buffer_allocate\",\"_rundot_kinetix_world_buffer_free\",\"_rundot_kinetix_world_create\",\"_rundot_kinetix_instance_ledger_info\",\"_rundot_kinetix_instance_ledger_metadata\",\"_rundot_kinetix_instance_ledger_classes\",\"_rundot_kinetix_instance_ledger_reset_high_water\",\"_rundot_kinetix_world_attach\",\"_rundot_kinetix_world_capture_cache_bytes\",\"_rundot_kinetix_world_checkpoint_capacity\",\"_rundot_kinetix_world_checkpoint_capture_snapshot_token\",\"_rundot_kinetix_world_checkpoint_capture_token\",\"_rundot_kinetix_world_checkpoint_legacy_preflight\",\"_rundot_kinetix_world_checkpoint_live_count\",\"_rundot_kinetix_world_checkpoint_preflight\",\"_rundot_kinetix_world_checkpoint_release_token\",\"_rundot_kinetix_world_checkpoint_restore_token\",\"_rundot_kinetix_world_create_with_checkpoint_capacity\",\"_rundot_kinetix_world_detach\",\"_rundot_kinetix_world_import_snapshot_attached\",\"_rundot_kinetix_world_ownership_counts\",\"_rundot_kinetix_world_revision\",\"_rundot_kinetix_world_destroy\",\"_rundot_kinetix_world_digest\",\"_rundot_kinetix_world_digest_algorithm_revision\",\"_rundot_kinetix_world_checkpoint_digest\",\"_rundot_kinetix_world_checkpoint_strong_digest\",\"_rundot_kinetix_world_checkpoint_strong_digest_token\",\"_rundot_kinetix_world_strong_digest_algorithm_revision\",\"_rundot_kinetix_world_checkpoint_digest_token\",\"_rundot_kinetix_world_checkpoint_view_info\",\"_rundot_kinetix_world_checkpoint_view_info_token\",\"_rundot_kinetix_world_checkpoint_write_body_motion_into\",\"_rundot_kinetix_world_checkpoint_write_body_motion_into_token\",\"_rundot_kinetix_world_checkpoint_copy_latest_output\",\"_rundot_kinetix_world_checkpoint_copy_latest_output_token\",\"_rundot_kinetix_world_checkpoint_import\",\"_rundot_kinetix_world_checkpoint_import_token\",\"_rundot_kinetix_world_frame\",\"_rundot_kinetix_world_replace_state\",\"_rundot_kinetix_world_step\",\"_rundot_kinetix_physics_route_counters\",\"_rundot_kinetix_world_apply_impulse\",\"_rundot_kinetix_world_set_body_force\",\"_rundot_kinetix_world_apply_force\",\"_rundot_kinetix_world_apply_force_at_point\",\"_rundot_kinetix_world_clear_body_force\",\"_rundot_kinetix_world_set_body_surface_velocity\",\"_rundot_kinetix_world_max_support_records\",\"_rundot_kinetix_world_apply_support\",\"_rundot_kinetix_world_read_surface_velocity\",\"_rundot_kinetix_world_read_body_mobility\",\"_rundot_kinetix_world_read_pending_support_impulse\",\"_rundot_kinetix_world_set_body_linear_velocity\",\"_rundot_kinetix_world_set_body_angular_velocity\",\"_rundot_kinetix_world_set_body_transform\",\"_rundot_kinetix_world_set_body_linear_damping\",\"_rundot_kinetix_world_apply_impulses\",\"_rundot_kinetix_world_set_body_property\",\"_rundot_kinetix_world_set_body_mass_data\",\"_rundot_kinetix_world_wake_body\",\"_rundot_kinetix_world_wake_connected\",\"_rundot_kinetix_world_write_body_motion\",\"_rundot_kinetix_world_read_body_activity_counts\",\"_rundot_kinetix_world_motion_pose_stride\",\"_rundot_kinetix_world_motion_velocity_stride\",\"_rundot_kinetix_world_motion_status_version\",\"_rundot_kinetix_world_motion_pose_value_limit\",\"_rundot_kinetix_world_motion_velocity_value_limit\",\"_rundot_kinetix_world_motion_id_word_limit\",\"_rundot_kinetix_world_motion_status_byte_limit\",\"_rundot_kinetix_physics_buoyancy\",\"_rundot_kinetix_physics_voxel_buoyancy\",\"_rundot_kinetix_physics_buoyancy_abi_version\",\"_rundot_kinetix_physics_buoyancy_input_stride\",\"_rundot_kinetix_physics_buoyancy_output_stride\",\"_rundot_kinetix_physics_fluid_abi_version\",\"_rundot_kinetix_physics_fluid_forces_input_stride\",\"_rundot_kinetix_physics_fluid_forces_output_stride\",\"_rundot_kinetix_physics_fluid_volume_input_stride\",\"_rundot_kinetix_physics_fluid_state_forces_input_stride\",\"_rundot_kinetix_physics_fluid_forces\",\"_rundot_kinetix_physics_fluid_state_forces\",\"_rundot_kinetix_physics_voxel_fluid_forces\",\"_rundot_kinetix_world_query\",\"_rundot_kinetix_world_query_body_ray\",\"_rundot_kinetix_world_query_ray_batch\",\"_rundot_kinetix_world_periodic_domain\",\"_rundot_kinetix_world_query_images\",\"_rundot_kinetix_world_query_ray_batch_images\",\"_rundot_kinetix_world_read_support_contexts\",\"_rundot_kinetix_world_set_contact_exclusions\",\"_rundot_kinetix_world_set_shape_exclusions\",\"_rundot_kinetix_world_set_contact_rules\",\"_rundot_kinetix_world_set_query_hidden_bodies\",\"_rundot_kinetix_world_set_query_index\",\"_rundot_kinetix_world_last_query_stats\",\"_rundot_kinetix_world_step_counters\",\"_rundot_kinetix_world_mover_query\",\"_rundot_kinetix_world_state_info\",\"_rundot_kinetix_world_copy_state\",\"_rundot_kinetix_world_capture_snapshot\",\"_rundot_kinetix_world_import_snapshot\",\"_rundot_kinetix_world_checkpoint_capture\",\"_rundot_kinetix_world_checkpoint_restore\",\"_rundot_kinetix_world_checkpoint_release\",\"_rundot_kinetix_world_checkpoint_capture_snapshot\",\"_rundot_kinetix_world_error_size\",\"_rundot_kinetix_world_error_command_index\",\"_rundot_kinetix_world_copy_error\",\"_rundot_kinetix_physics_abi_version\",\"_rundot_kinetix_physics_body_stride\",\"_rundot_kinetix_physics_set_geometry\",\"_rundot_kinetix_physics_set_contact_cache\",\"_rundot_kinetix_physics_set_external_forces\",\"_rundot_kinetix_physics_contact_count\",\"_rundot_kinetix_physics_contact_data\",\"_rundot_kinetix_physics_contact_cache_count\",\"_rundot_kinetix_physics_contact_cache_data\",\"_rundot_kinetix_physics_joint_count\",\"_rundot_kinetix_physics_joint_data\",\"_rundot_kinetix_physics_query_count\",\"_rundot_kinetix_physics_query_data\",\"_rundot_kinetix_physics_step\",\"_rundot_kinetix_physics_step_v2\",\"_rundot_kinetix_physics_step_v3\",\"_rundot_kinetix_physics_step_with_joints\",\"_rundot_kinetix_physics_step_with_joints_v2\",\"_rundot_kinetix_physics_step_with_joints_v3\",\"_rundot_kinetix_physics_apply_impulses\",\"_rundot_kinetix_physics_raycast\",\"_rundot_kinetix_physics_overlap\",\"_rundot_kinetix_physics_shape_cast\",\"_rundot_kinetix_ext_abi_version\",\"_rundot_kinetix_ext_gear_config_stride\",\"_rundot_kinetix_ext_gear_state_stride\",\"_rundot_kinetix_ext_gear_telemetry_stride\",\"_rundot_kinetix_ext_gear_stride\",\"_rundot_kinetix_ext_gear_size\",\"_rundot_kinetix_ext_gear_solve\",\"_rundot_kinetix_ext_gear_step\",\"_rundot_kinetix_ext_pulley_config_stride\",\"_rundot_kinetix_ext_pulley_state_stride\",\"_rundot_kinetix_ext_pulley_geometry_stride\",\"_rundot_kinetix_ext_pulley_stride\",\"_rundot_kinetix_ext_pulley_size\",\"_rundot_kinetix_ext_pulley_solve\",\"_rundot_kinetix_ext_pulley_compute_geometry\",\"_rundot_kinetix_ext_path_joint_stride\",\"_rundot_kinetix_ext_path_joint_sample_stride\",\"_rundot_kinetix_ext_path_joint_control_point_stride\",\"_rundot_kinetix_ext_path_joint_size\",\"_rundot_kinetix_ext_path_joint_cook\",\"_rundot_kinetix_ext_path_joint_sample\",\"_rundot_kinetix_ext_path_joint_closest_arc_length\",\"_rundot_kinetix_ext_path_joint_solve\",\"_rundot_kinetix_ext_particles_particle_stride\",\"_rundot_kinetix_ext_particles_emitter_stride\",\"_rundot_kinetix_ext_particles_params_stride\",\"_rundot_kinetix_ext_particles_max_capacity\",\"_rundot_kinetix_ext_particles_max_emitters\",\"_rundot_kinetix_ext_particles_stride\",\"_rundot_kinetix_ext_particles_size\",\"_rundot_kinetix_ext_particles_step\",\"_rundot_kinetix_ext_particles_emit\",\"_rundot_kinetix_ext_particles_reset\",\"_rundot_kinetix_ext_ragdoll_bone_stride\",\"_rundot_kinetix_ext_ragdoll_transform_stride\",\"_rundot_kinetix_ext_ragdoll_body_stride\",\"_rundot_kinetix_ext_ragdoll_joint_stride\",\"_rundot_kinetix_ext_ragdoll_max_bones\",\"_rundot_kinetix_ext_ragdoll_max_joints\",\"_rundot_kinetix_ext_ragdoll_max_filter_pairs\",\"_rundot_kinetix_ext_ragdoll_stride\",\"_rundot_kinetix_ext_ragdoll_size\",\"_rundot_kinetix_ext_ragdoll_construct\",\"_rundot_kinetix_ext_ragdoll_forward_kinematics\",\"_rundot_kinetix_ext_ragdoll_inverse_kinematics\",\"_rundot_kinetix_ext_ragdoll_constrain_pose\",\"_rundot_kinetix_ext_powertrain_config_stride\",\"_rundot_kinetix_ext_powertrain_state_stride\",\"_rundot_kinetix_ext_powertrain_input_stride\",\"_rundot_kinetix_ext_powertrain_wheel_state_stride\",\"_rundot_kinetix_ext_powertrain_wheel_output_stride\",\"_rundot_kinetix_ext_powertrain_max_wheels\",\"_rundot_kinetix_ext_powertrain_max_gears\",\"_rundot_kinetix_ext_powertrain_stride\",\"_rundot_kinetix_ext_powertrain_size\",\"_rundot_kinetix_ext_powertrain_step\",\"_rundot_kinetix_ext_powertrain_sample_engine_curve\",\"_rundot_kinetix_ext_rounded_convex_sphere_stride\",\"_rundot_kinetix_ext_rounded_convex_vertex_stride\",\"_rundot_kinetix_ext_rounded_convex_pose_stride\",\"_rundot_kinetix_ext_rounded_convex_direction_stride\",\"_rundot_kinetix_ext_rounded_convex_support_stride\",\"_rundot_kinetix_ext_rounded_convex_collision_stride\",\"_rundot_kinetix_ext_rounded_convex_mass_properties_stride\",\"_rundot_kinetix_ext_rounded_convex_ray_stride\",\"_rundot_kinetix_ext_rounded_convex_rayhit_stride\",\"_rundot_kinetix_ext_rounded_convex_max_spheres\",\"_rundot_kinetix_ext_rounded_convex_max_vertices\",\"_rundot_kinetix_ext_rounded_convex_input_stride\",\"_rundot_kinetix_ext_rounded_convex_output_stride\",\"_rundot_kinetix_ext_rounded_convex_stride\",\"_rundot_kinetix_ext_rounded_convex_size\",\"_rundot_kinetix_ext_rounded_convex_support\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_support\",\"_rundot_kinetix_ext_rounded_convex_collide\",\"_rundot_kinetix_ext_rounded_convex_collision\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_collide\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_collision\",\"_rundot_kinetix_ext_rounded_convex_compute_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_compute_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_raycast\",\"_rundot_kinetix_ext_surface_velocity_record_stride\",\"_rundot_kinetix_ext_surface_velocity_rule_stride\",\"_rundot_kinetix_ext_surface_velocity_properties_stride\",\"_rundot_kinetix_ext_surface_velocity_stride\",\"_rundot_kinetix_ext_surface_velocity_size\",\"_rundot_kinetix_ext_surface_velocity_evaluate_rules\",\"_rundot_kinetix_ext_surface_velocity_solve_conveyor_friction\",\"_rundot_kinetix_ext_surface_velocity_solve_friction\",\"_rundot_kinetix_ext_contact_material_record_version\",\"_rundot_kinetix_ext_contact_material_record_double_stride\",\"_rundot_kinetix_ext_contact_material_rule_double_stride\",\"_rundot_kinetix_ext_contact_material_result_double_stride\",\"_rundot_kinetix_ext_resolve_contact_material\",\"_rundot_kinetix_ext_serialize_contact_material_rules_versioned\",\"_rundot_kinetix_ext_deserialize_contact_material_rules_versioned\",\"_rundot_kinetix_ext_deformables_abi_version\",\"_rundot_kinetix_ext_cloth_node_stride\",\"_rundot_kinetix_ext_cloth_stretch_stride\",\"_rundot_kinetix_ext_cloth_shear_stride\",\"_rundot_kinetix_ext_cloth_bend_stride\",\"_rundot_kinetix_ext_cloth_face_stride\",\"_rundot_kinetix_ext_cloth_pin_stride\",\"_rundot_kinetix_ext_cloth_tether_stride\",\"_rundot_kinetix_ext_cloth_params_stride\",\"_rundot_kinetix_ext_cloth_max_nodes\",\"_rundot_kinetix_ext_cloth_max_faces\",\"_rundot_kinetix_ext_cloth_max_pins\",\"_rundot_kinetix_ext_cloth_stride\",\"_rundot_kinetix_ext_cloth_size\",\"_rundot_kinetix_ext_cloth_step\",\"_rundot_kinetix_ext_cloth_probe_size\",\"_rundot_kinetix_ext_cloth_probe\",\"_rundot_kinetix_ext_soft_body_abi_version\",\"_rundot_kinetix_ext_soft_body_node_stride\",\"_rundot_kinetix_ext_soft_body_tet_stride\",\"_rundot_kinetix_ext_soft_body_face_stride\",\"_rundot_kinetix_ext_soft_body_edge_stride\",\"_rundot_kinetix_ext_soft_body_anchor_stride\",\"_rundot_kinetix_ext_soft_body_params_stride\",\"_rundot_kinetix_ext_soft_body_max_nodes\",\"_rundot_kinetix_ext_soft_body_max_tetrahedra\",\"_rundot_kinetix_ext_soft_body_max_edges\",\"_rundot_kinetix_ext_soft_body_max_faces\",\"_rundot_kinetix_ext_soft_body_size\",\"_rundot_kinetix_ext_soft_body_step\",\"_rundot_kinetix_ext_soft_body_compute_volume\",\"_rundot_kinetix_ext_soft_body_solve_volume\",\"_rundot_kinetix_ext_soft_body_apply_pressure\",\"_rundot_kinetix_ext_soft_body_handle_inversion\",\"_rundot_kinetix_ext_soft_body_probe_size\",\"_rundot_kinetix_ext_soft_body_probe\",\"_rundot_kinetix_ext_soft_collision_abi_version\",\"_rundot_kinetix_ext_soft_node_stride\",\"_rundot_kinetix_ext_soft_face_stride\",\"_rundot_kinetix_ext_soft_body_stride\",\"_rundot_kinetix_ext_soft_params_stride\",\"_rundot_kinetix_ext_soft_rigid_contact_stride\",\"_rundot_kinetix_ext_soft_soft_contact_stride\",\"_rundot_kinetix_ext_soft_sensor_event_stride\",\"_rundot_kinetix_ext_soft_raycast_query_stride\",\"_rundot_kinetix_ext_soft_raycast_hit_stride\",\"_rundot_kinetix_ext_soft_overlap_query_stride\",\"_rundot_kinetix_ext_soft_overlap_hit_stride\",\"_rundot_kinetix_ext_soft_closest_point_query_stride\",\"_rundot_kinetix_ext_soft_closest_point_result_stride\",\"_rundot_kinetix_ext_soft_max_nodes\",\"_rundot_kinetix_ext_soft_max_faces\",\"_rundot_kinetix_ext_soft_max_bodies\",\"_rundot_kinetix_ext_soft_max_contacts\",\"_rundot_kinetix_ext_soft_max_sensor_events\",\"_rundot_kinetix_ext_soft_max_exclusions\",\"_rundot_kinetix_ext_soft_stride\",\"_rundot_kinetix_ext_soft_size\",\"_rundot_kinetix_ext_soft_collision_stride\",\"_rundot_kinetix_ext_soft_collision_size\",\"_rundot_kinetix_ext_soft_rigid_solve\",\"_rundot_kinetix_ext_soft_soft_solve\",\"_rundot_kinetix_ext_soft_step\",\"_rundot_kinetix_ext_soft_raycast\",\"_rundot_kinetix_ext_soft_overlap_sphere\",\"_rundot_kinetix_ext_soft_overlap_aabb\",\"_rundot_kinetix_ext_soft_closest_point\",\"_rundot_kinetix_ext_fracture_abi_version\",\"_rundot_kinetix_ext_fracture_vertex_stride\",\"_rundot_kinetix_ext_fracture_constraint_stride\",\"_rundot_kinetix_ext_fracture_face_stride\",\"_rundot_kinetix_ext_fracture_event_stride\",\"_rundot_kinetix_ext_fracture_audit_stride\",\"_rundot_kinetix_ext_fracture_snapshot_header_stride\",\"_rundot_kinetix_ext_fracture_cutting_tool_stride\",\"_rundot_kinetix_ext_fracture_params_stride\",\"_rundot_kinetix_ext_fracture_max_vertices\",\"_rundot_kinetix_ext_fracture_max_constraints\",\"_rundot_kinetix_ext_fracture_max_faces\",\"_rundot_kinetix_ext_fracture_max_events\",\"_rundot_kinetix_ext_fracture_max_fragments\",\"_rundot_kinetix_ext_fracture_stride\",\"_rundot_kinetix_ext_fracture_size\",\"_rundot_kinetix_ext_fracture_create_grid\",\"_rundot_kinetix_ext_fracture_step\",\"_rundot_kinetix_ext_fracture_cut\",\"_rundot_kinetix_ext_fracture_tear_constraint\",\"_rundot_kinetix_ext_fracture_split_vertex\",\"_rundot_kinetix_ext_fracture_find_components\",\"_rundot_kinetix_ext_fracture_audit_mass\",\"_rundot_kinetix_ext_fracture_capture_snapshot\",\"_rundot_kinetix_ext_fracture_restore_snapshot\",\"_rundot_kinetix_ext_sdf_abi_version\",\"_rundot_kinetix_ext_custom_geometry_abi_version\",\"_rundot_kinetix_ext_sdf_grid_desc_stride\",\"_rundot_kinetix_ext_sdf_pose_stride\",\"_rundot_kinetix_ext_sdf_query_input_stride\",\"_rundot_kinetix_ext_sdf_query_output_stride\",\"_rundot_kinetix_ext_sdf_collision_stride\",\"_rundot_kinetix_ext_sdf_ray_stride\",\"_rundot_kinetix_ext_sdf_rayhit_stride\",\"_rundot_kinetix_ext_custom_geometry_desc_stride\",\"_rundot_kinetix_ext_sdf_stride\",\"_rundot_kinetix_ext_sdf_size\",\"_rundot_kinetix_ext_custom_geometry_stride\",\"_rundot_kinetix_ext_custom_geometry_size\",\"_rundot_kinetix_ext_sdf_cook_primitive\",\"_rundot_kinetix_ext_sdf_cook_csg\",\"_rundot_kinetix_ext_sdf_compute_conservative_bounds\",\"_rundot_kinetix_ext_sdf_sample\",\"_rundot_kinetix_ext_sdf_raycast\",\"_rundot_kinetix_ext_sdf_collide_sphere\",\"_rundot_kinetix_ext_sdf_collide_capsule\",\"_rundot_kinetix_ext_sdf_collide_box\",\"_rundot_kinetix_ext_sdf_collide_particles\",\"_rundot_kinetix_ext_custom_geometry_bounds\",\"_rundot_kinetix_ext_custom_geometry_evaluate\",\"_rundot_kinetix_ext_custom_geometry_raycast\",\"_rundot_kinetix_ext_deformable_abi_version\",\"_rundot_kinetix_ext_deformable_snapshot_version\",\"_rundot_kinetix_ext_deformable_node_stride\",\"_rundot_kinetix_ext_deformable_triangle_stride\",\"_rundot_kinetix_ext_deformable_tetra_stride\",\"_rundot_kinetix_ext_deformable_constraint_stride\",\"_rundot_kinetix_ext_deformable_contact_stride\",\"_rundot_kinetix_ext_deformable_pressure_stride\",\"_rundot_kinetix_ext_deformable_ray_query_stride\",\"_rundot_kinetix_ext_deformable_ray_hit_stride\",\"_rundot_kinetix_ext_deformable_overlap_query_stride\",\"_rundot_kinetix_ext_deformable_overlap_result_stride\",\"_rundot_kinetix_ext_deformable_sweep_query_stride\",\"_rundot_kinetix_ext_deformable_sweep_hit_stride\",\"_rundot_kinetix_ext_deformable_snapshot_header_size\",\"_rundot_kinetix_ext_deformable_stride\",\"_rundot_kinetix_ext_deformable_size\",\"_rundot_kinetix_ext_deformable_raycast\",\"_rundot_kinetix_ext_deformable_overlap\",\"_rundot_kinetix_ext_deformable_sweep\",\"_rundot_kinetix_ext_deformable_closest_point\",\"_rundot_kinetix_ext_deformable_snapshot_size\",\"_rundot_kinetix_ext_deformable_capture_snapshot\",\"_rundot_kinetix_ext_deformable_restore_snapshot\",\"_rundot_kinetix_ext_deformable_verify_snapshot\",\"_rundot_kinetix_ext_deformable_compute_bounds\",\"_rundot_kinetix_ext_deformable_compute_volume\",\"_rundot_kinetix_ext_d18_abi_version\",\"_rundot_kinetix_ext_d18_node_stride\",\"_rundot_kinetix_ext_d18_segment_stride\",\"_rundot_kinetix_ext_d18_face_stride\",\"_rundot_kinetix_ext_d18_distance_constraint_stride\",\"_rundot_kinetix_ext_d18_bend_constraint_stride\",\"_rundot_kinetix_ext_d18_shear_constraint_stride\",\"_rundot_kinetix_ext_d18_area_constraint_stride\",\"_rundot_kinetix_ext_d18_anchor_stride\",\"_rundot_kinetix_ext_d18_particle_stride\",\"_rundot_kinetix_ext_d18_emitter_stride\",\"_rundot_kinetix_ext_d18_params_stride\",\"_rundot_kinetix_ext_d18_rigid_body_stride\",\"_rundot_kinetix_ext_d18_raycast_query_stride\",\"_rundot_kinetix_ext_d18_raycast_hit_stride\",\"_rundot_kinetix_ext_d18_closest_point_query_stride\",\"_rundot_kinetix_ext_d18_closest_point_hit_stride\",\"_rundot_kinetix_ext_d18_overlap_query_stride\",\"_rundot_kinetix_ext_d18_overlap_hit_stride\",\"_rundot_kinetix_ext_d18_world_size\",\"_rundot_kinetix_ext_d18_stride\",\"_rundot_kinetix_ext_d18_size\",\"_rundot_kinetix_ext_d18_step\",\"_rundot_kinetix_ext_d18_step_raw\",\"_rundot_kinetix_ext_d18_add_rope\",\"_rundot_kinetix_ext_d18_add_cloth_grid\",\"_rundot_kinetix_ext_d18_add_particle\",\"_rundot_kinetix_ext_d18_raycast\",\"_rundot_kinetix_ext_d18_closest_point\",\"_rundot_kinetix_ext_d18_overlap\",\"_rundot_kinetix_ext_d18_capture_snapshot\",\"_rundot_kinetix_ext_d18_restore_snapshot\",\"_rundot_kinetix_ext_d18_compute_mass_properties\",\"_rundot_kinetix_ext_planar_deformable_abi_version\",\"_rundot_kinetix_ext_planar_deformable_node_stride\",\"_rundot_kinetix_ext_planar_deformable_segment_stride\",\"_rundot_kinetix_ext_planar_deformable_face_stride\",\"_rundot_kinetix_ext_planar_deformable_distance_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_bend_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_shear_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_area_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_anchor_stride\",\"_rundot_kinetix_ext_planar_deformable_particle_stride\",\"_rundot_kinetix_ext_planar_deformable_emitter_stride\",\"_rundot_kinetix_ext_planar_deformable_params_stride\",\"_rundot_kinetix_ext_planar_deformable_rigid_body_stride\",\"_rundot_kinetix_ext_planar_deformable_raycast_query_stride\",\"_rundot_kinetix_ext_planar_deformable_raycast_hit_stride\",\"_rundot_kinetix_ext_planar_deformable_closest_point_query_stride\",\"_rundot_kinetix_ext_planar_deformable_closest_point_hit_stride\",\"_rundot_kinetix_ext_planar_deformable_overlap_query_stride\",\"_rundot_kinetix_ext_planar_deformable_overlap_hit_stride\",\"_rundot_kinetix_ext_planar_deformable_world_size\",\"_rundot_kinetix_ext_planar_deformable_stride\",\"_rundot_kinetix_ext_planar_deformable_size\",\"_rundot_kinetix_ext_planar_deformable_step\",\"_rundot_kinetix_ext_planar_deformable_step_raw\",\"_rundot_kinetix_ext_planar_deformable_add_rope\",\"_rundot_kinetix_ext_planar_deformable_add_cloth_grid\",\"_rundot_kinetix_ext_planar_deformable_add_particle\",\"_rundot_kinetix_ext_planar_deformable_raycast\",\"_rundot_kinetix_ext_planar_deformable_closest_point\",\"_rundot_kinetix_ext_planar_deformable_overlap\",\"_rundot_kinetix_ext_planar_deformable_capture_snapshot\",\"_rundot_kinetix_ext_planar_deformable_restore_snapshot\",\"_rundot_kinetix_ext_planar_deformable_compute_mass_properties\",\"_rundot_kinetix_ext_characters_abi_version\",\"_rundot_kinetix_ext_powered_ragdoll_abi_version\",\"_rundot_kinetix_ext_powered_ragdoll_config_stride\",\"_rundot_kinetix_ext_powered_ragdoll_joint_config_stride\",\"_rundot_kinetix_ext_powered_ragdoll_joint_state_stride\",\"_rundot_kinetix_ext_powered_ragdoll_hit_stride\",\"_rundot_kinetix_ext_powered_ragdoll_transform_stride\",\"_rundot_kinetix_ext_powered_ragdoll_stride\",\"_rundot_kinetix_ext_powered_ragdoll_size\",\"_rundot_kinetix_ext_powered_ragdoll_max_bones\",\"_rundot_kinetix_ext_powered_ragdoll_max_joints\",\"_rundot_kinetix_ext_powered_ragdoll_state_size\",\"_rundot_kinetix_ext_powered_ragdoll_step\",\"_rundot_kinetix_ext_powered_ragdoll_apply_hit\",\"_rundot_kinetix_ext_powered_ragdoll_blend_pose\",\"_rundot_kinetix_ext_powered_ragdoll_recover_pose\",\"_rundot_kinetix_ext_powered_ragdoll_capture_state\",\"_rundot_kinetix_ext_powered_ragdoll_restore_state\",\"_rundot_kinetix_ext_voxel_abi_version\",\"_rundot_kinetix_ext_voxel_child_stride\",\"_rundot_kinetix_ext_voxel_stats_stride\",\"_rundot_kinetix_ext_voxel_subchunk_stride\",\"_rundot_kinetix_ext_voxel_ray_hit_stride\",\"_rundot_kinetix_ext_voxel_seam_result_stride\",\"_rundot_kinetix_ext_voxel_stride\",\"_rundot_kinetix_ext_voxel_size\",\"_rundot_kinetix_ext_voxel_max_dimension\",\"_rundot_kinetix_ext_voxel_scratch_size\",\"_rundot_kinetix_ext_voxel_cook_chunk\",\"_rundot_kinetix_ext_voxel_carve\",\"_rundot_kinetix_ext_voxel_incremental_cook\",\"_rundot_kinetix_ext_voxel_split_components\",\"_rundot_kinetix_ext_voxel_incremental_slice\",\"_rundot_kinetix_ext_voxel_raycast_dda\",\"_rundot_kinetix_ext_voxel_seam_query\",\"_rundot_kinetix_ext_k09_abi_version\",\"_rundot_kinetix_ext_k09_body_stride\",\"_rundot_kinetix_ext_k09_header_stride\",\"_rundot_kinetix_ext_k09_query_stride\",\"_rundot_kinetix_ext_k09_result_stride\",\"_rundot_kinetix_ext_k09_max_frames\",\"_rundot_kinetix_ext_k09_max_bodies\",\"_rundot_kinetix_ext_k09_max_results\",\"_rundot_kinetix_ext_lag_compensation_stride\",\"_rundot_kinetix_ext_lag_compensation_size\",\"_rundot_kinetix_ext_k09_stride\",\"_rundot_kinetix_ext_k09_size\",\"_rundot_kinetix_ext_k09_reset\",\"_rundot_kinetix_ext_k09_record_frame\",\"_rundot_kinetix_ext_k09_has_tick\",\"_rundot_kinetix_ext_k09_oldest_tick\",\"_rundot_kinetix_ext_k09_newest_tick\",\"_rundot_kinetix_ext_k09_frame_count\",\"_rundot_kinetix_ext_k09_query_topology\",\"_rundot_kinetix_ext_k09_query_body\",\"_rundot_kinetix_ext_k09_query_body_by_index\",\"_rundot_kinetix_ext_k09_query_filter\",\"_rundot_kinetix_ext_k09_query_geometry\",\"_rundot_kinetix_ext_k09_query_pose\",\"_rundot_kinetix_ext_k09_query_interpolated_pose\",\"_rundot_kinetix_ext_k09_rewind_scene\",\"_rundot_kinetix_ext_k09_rewind_scene_interpolated\",\"_rundot_kinetix_ext_k09_raycast\",\"_rundot_kinetix_ext_k09_overlap\",\"_rundot_kinetix_ext_k09_shapecast\",\"_rundot_kinetix_ext_lag_compensation_abi_version\",\"_rundot_kinetix_ext_lag_compensation_body_stride\",\"_rundot_kinetix_ext_lag_compensation_header_stride\",\"_rundot_kinetix_ext_lag_compensation_query_stride\",\"_rundot_kinetix_ext_lag_compensation_result_stride\",\"_rundot_kinetix_ext_lag_compensation_max_frames\",\"_rundot_kinetix_ext_lag_compensation_max_bodies\",\"_rundot_kinetix_ext_lag_compensation_max_results\",\"_rundot_kinetix_ext_lag_compensation_reset\",\"_rundot_kinetix_ext_lag_compensation_record_frame\",\"_rundot_kinetix_ext_lag_compensation_has_tick\",\"_rundot_kinetix_ext_lag_compensation_oldest_tick\",\"_rundot_kinetix_ext_lag_compensation_newest_tick\",\"_rundot_kinetix_ext_lag_compensation_frame_count\",\"_rundot_kinetix_ext_lag_compensation_query_topology\",\"_rundot_kinetix_ext_lag_compensation_query_body\",\"_rundot_kinetix_ext_lag_compensation_query_body_by_index\",\"_rundot_kinetix_ext_lag_compensation_query_filter\",\"_rundot_kinetix_ext_lag_compensation_query_geometry\",\"_rundot_kinetix_ext_lag_compensation_query_pose\",\"_rundot_kinetix_ext_lag_compensation_query_interpolated_pose\",\"_rundot_kinetix_ext_lag_compensation_rewind_scene\",\"_rundot_kinetix_ext_lag_compensation_rewind_scene_interpolated\",\"_rundot_kinetix_ext_lag_compensation_raycast\",\"_rundot_kinetix_ext_lag_compensation_overlap\",\"_rundot_kinetix_ext_lag_compensation_shapecast\",\"_rundot_kinetix_ext_articulation_abi_version\",\"_rundot_kinetix_ext_articulation_link_stride\",\"_rundot_kinetix_ext_articulation_joint_stride\",\"_rundot_kinetix_ext_articulation_state_stride\",\"_rundot_kinetix_ext_articulation_loop_stride\",\"_rundot_kinetix_ext_articulation_stride\",\"_rundot_kinetix_ext_articulation_size\",\"_rundot_kinetix_ext_articulation_max_links\",\"_rundot_kinetix_ext_articulation_max_dofs\",\"_rundot_kinetix_ext_articulation_max_loops\",\"_rundot_kinetix_ext_articulation_step\",\"_rundot_kinetix_ext_articulation_forward_kinematics\",\"_rundot_kinetix_ext_articulation_solve_loops\",\"_rundot_kinetix_ext_articulation_sync_bodies\",\"_rundot_kinetix_ext_vehicles_abi_version\",\"_rundot_kinetix_ext_tracks_abi_version\",\"_rundot_kinetix_ext_tracks_wheel_stride\",\"_rundot_kinetix_ext_tracks_track_config_stride\",\"_rundot_kinetix_ext_tracks_vehicle_config_stride\",\"_rundot_kinetix_ext_tracks_input_stride\",\"_rundot_kinetix_ext_tracks_state_stride\",\"_rundot_kinetix_ext_tracks_output_stride\",\"_rundot_kinetix_ext_tracks_max_wheels_per_track\",\"_rundot_kinetix_ext_tracks_max_tracks\",\"_rundot_kinetix_ext_tracks_stride\",\"_rundot_kinetix_ext_tracks_size\",\"_rundot_kinetix_ext_tracks_step_vehicle\",\"_rundot_kinetix_ext_tracks_step\",\"_rundot_kinetix_ext_tracks_evaluate_friction\",\"_rundot_kinetix_ext_tracks_differential_steering\",\"_rundot_kinetix_ext_motorcycle_abi_version\",\"_rundot_kinetix_ext_motorcycle_config_stride\",\"_rundot_kinetix_ext_motorcycle_input_stride\",\"_rundot_kinetix_ext_motorcycle_state_stride\",\"_rundot_kinetix_ext_motorcycle_output_stride\",\"_rundot_kinetix_ext_motorcycle_stride\",\"_rundot_kinetix_ext_motorcycle_size\",\"_rundot_kinetix_ext_motorcycle_step\",\"_rundot_kinetix_ext_motorcycle_lean_stability\",\"_rundot_kinetix_ext_motorcycle_countersteer\",\"_rundot_kinetix_ext_platformer2d_abi_version\",\"_rundot_kinetix_ext_platformer2d_state_stride\",\"_rundot_kinetix_ext_platformer2d_input_stride\",\"_rundot_kinetix_ext_platformer2d_config_stride\",\"_rundot_kinetix_ext_platformer2d_body_stride\",\"_rundot_kinetix_ext_platformer2d_event_stride\",\"_rundot_kinetix_ext_platformer2d_max_events\",\"_rundot_kinetix_ext_platformer2d_max_bodies\",\"_rundot_kinetix_ext_platformer2d_max_slide_iterations\",\"_rundot_kinetix_ext_platformer2d_stride\",\"_rundot_kinetix_ext_platformer2d_size\",\"_rundot_kinetix_ext_platformer2d_step\",\"_rundot_kinetix_ext_platformer2d_step_legacy\",\"_rundot_kinetix_ext_core_features_abi_version\",\"_rundot_kinetix_ext_character_abi_version\",\"_rundot_kinetix_ext_character_config_stride\",\"_rundot_kinetix_ext_character_config_size\",\"_rundot_kinetix_ext_character_input_stride\",\"_rundot_kinetix_ext_character_input_size\",\"_rundot_kinetix_ext_character_state_stride\",\"_rundot_kinetix_ext_character_state_size\",\"_rundot_kinetix_ext_character_hit_stride\",\"_rundot_kinetix_ext_character_hit_size\",\"_rundot_kinetix_ext_character_shape_stride\",\"_rundot_kinetix_ext_character_shape_size\",\"_rundot_kinetix_ext_character_stride\",\"_rundot_kinetix_ext_character_size\",\"_rundot_kinetix_ext_character_step\",\"_rundot_kinetix_ext_character_reset\",\"_rundot_kinetix_ext_character_init_config\",\"_rundot_kinetix_ext_character_init_state\",\"_rundot_kinetix_ext_distance_abi_version\",\"_rundot_kinetix_ext_distance_input_stride\",\"_rundot_kinetix_ext_distance_input_size\",\"_rundot_kinetix_ext_distance_options_stride\",\"_rundot_kinetix_ext_distance_options_size\",\"_rundot_kinetix_ext_distance_output_stride\",\"_rundot_kinetix_ext_distance_output_size\",\"_rundot_kinetix_ext_distance_result_stride\",\"_rundot_kinetix_ext_distance_result_size\",\"_rundot_kinetix_ext_distance_shape_stride\",\"_rundot_kinetix_ext_distance_shape_size\",\"_rundot_kinetix_ext_distance_stride\",\"_rundot_kinetix_ext_distance_size\",\"_rundot_kinetix_ext_distance_shape_distance\",\"_rundot_kinetix_ext_distance_point_distance\",\"_rundot_kinetix_ext_distance_solve\",\"_rundot_kinetix_ext_distance_reset\",\"_rundot_kinetix_ext_mass_properties_abi_version\",\"_rundot_kinetix_ext_mass_properties_shape_stride\",\"_rundot_kinetix_ext_mass_properties_output_stride\",\"_rundot_kinetix_ext_mass_properties_compute\",\"_rundot_kinetix_ext_mass_properties_diagonalize\",\"_rundot_kinetix_ext_mass_properties_is_positive_definite\",\"_rundot_kinetix_ext_hull_cook_output_stride\",\"_rundot_kinetix_ext_hull_cook\",\"_rundot_kinetix_ext_rope_abi_version\",\"_rundot_kinetix_ext_rope_node_stride\",\"_rundot_kinetix_ext_rope_node_size\",\"_rundot_kinetix_ext_rope_segment_stride\",\"_rundot_kinetix_ext_rope_segment_size\",\"_rundot_kinetix_ext_rope_bend_stride\",\"_rundot_kinetix_ext_rope_bend_size\",\"_rundot_kinetix_ext_rope_twist_stride\",\"_rundot_kinetix_ext_rope_twist_size\",\"_rundot_kinetix_ext_rope_anchor_stride\",\"_rundot_kinetix_ext_rope_anchor_size\",\"_rundot_kinetix_ext_rope_params_stride\",\"_rundot_kinetix_ext_rope_params_size\",\"_rundot_kinetix_ext_rope_break_event_stride\",\"_rundot_kinetix_ext_rope_break_event_size\",\"_rundot_kinetix_ext_rope_max_nodes\",\"_rundot_kinetix_ext_rope_max_segments\",\"_rundot_kinetix_ext_rope_max_anchors\",\"_rundot_kinetix_ext_rope_max_break_events\",\"_rundot_kinetix_ext_rope_stride\",\"_rundot_kinetix_ext_rope_size\",\"_rundot_kinetix_ext_rope_probe_size\",\"_rundot_kinetix_ext_rope_probe\",\"_rundot_kinetix_ext_rope_step\",\"_rundot_kinetix_ext_rope_solve\",\"_rundot_kinetix_ext_rope_reset\",\"_rundot_kinetix_ext_vehicle_abi_version\",\"_rundot_kinetix_ext_vehicle_wheel_stride\",\"_rundot_kinetix_ext_vehicle_wheel_size\",\"_rundot_kinetix_ext_vehicle_contact_stride\",\"_rundot_kinetix_ext_vehicle_contact_size\",\"_rundot_kinetix_ext_vehicle_chassis_stride\",\"_rundot_kinetix_ext_vehicle_chassis_size\",\"_rundot_kinetix_ext_vehicle_surface_stride\",\"_rundot_kinetix_ext_vehicle_surface_size\",\"_rundot_kinetix_ext_vehicle_triangle_stride\",\"_rundot_kinetix_ext_vehicle_triangle_size\",\"_rundot_kinetix_ext_vehicle_comparison_stride\",\"_rundot_kinetix_ext_vehicle_comparison_size\",\"_rundot_kinetix_ext_vehicle_max_triangles\",\"_rundot_kinetix_ext_vehicle_stride\",\"_rundot_kinetix_ext_vehicle_size\",\"_rundot_kinetix_ext_vehicle_raycast_wheel\",\"_rundot_kinetix_ext_vehicle_shapecast_wheel\",\"_rundot_kinetix_ext_vehicle_evaluate_wheel\",\"_rundot_kinetix_ext_vehicle_compare_wheel\",\"_rundot_kinetix_ext_vehicle_solve_wheel\",\"_rundot_kinetix_ext_vehicle_step\",\"_rundot_kinetix_ext_vehicle_reset_contact\"]"
|
|
52
52
|
],
|
|
53
|
-
"simulationSourceHash": "
|
|
53
|
+
"simulationSourceHash": "34b4e953a20fa416dc77d35cbecbe9e0aa3c91c0a8f1e039f6cb8ac4526d9ba8"
|
|
54
54
|
});
|
|
55
55
|
// The bytes ship beside this module. The loader checks them against wasmSha256 before use.
|
|
56
56
|
export function physicsProfileWasmUrl() {
|
|
Binary file
|
|
@@ -27,10 +27,10 @@ export const physicsWasmMetadata = Object.freeze({
|
|
|
27
27
|
"compiler": "em++",
|
|
28
28
|
"emccVersion": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 6.0.3-git",
|
|
29
29
|
"compilerVersion": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 6.0.3-git",
|
|
30
|
-
"sourceHash": "
|
|
31
|
-
"wasmSha256": "
|
|
30
|
+
"sourceHash": "34b4e953a20fa416dc77d35cbecbe9e0aa3c91c0a8f1e039f6cb8ac4526d9ba8",
|
|
31
|
+
"wasmSha256": "073f5e5a77226676c13e9cd1f5d959cafcbc533b65be3bc996dbe7f951182b89",
|
|
32
32
|
"artifact": "production",
|
|
33
|
-
"packageVersion": "6.0.0-rc.
|
|
33
|
+
"packageVersion": "6.0.0-rc.80",
|
|
34
34
|
"compilerFlags": [
|
|
35
35
|
"-std=c++20",
|
|
36
36
|
"-O3",
|
|
@@ -49,7 +49,7 @@ export const physicsWasmMetadata = Object.freeze({
|
|
|
49
49
|
"-sSTACK_SIZE=1048576",
|
|
50
50
|
"-sEXPORTED_FUNCTIONS=[\"_malloc\",\"_free\",\"_rundot_kinetix_ext_voxel_abi_version\",\"_rundot_kinetix_ext_voxel_child_stride\",\"_rundot_kinetix_ext_voxel_stats_stride\",\"_rundot_kinetix_ext_voxel_subchunk_stride\",\"_rundot_kinetix_ext_voxel_ray_hit_stride\",\"_rundot_kinetix_ext_voxel_seam_result_stride\",\"_rundot_kinetix_ext_voxel_mass_properties_stride\",\"_rundot_kinetix_ext_voxel_mass_properties\",\"_rundot_kinetix_ext_voxel_scratch_size\",\"_rundot_kinetix_ext_voxel_cook_chunk\",\"_rundot_kinetix_ext_voxel_carve\",\"_rundot_kinetix_ext_voxel_incremental_cook\",\"_rundot_kinetix_ext_voxel_split_components\",\"_rundot_kinetix_ext_voxel_incremental_slice\",\"_rundot_kinetix_ext_voxel_raycast_dda\",\"_rundot_kinetix_ext_voxel_seam_query\",\"_rundot_kinetix_world_abi_version\",\"_rundot_kinetix_numeric_environment_valid\",\"_rundot_kinetix_world_joint_warm_state_stride\",\"_rundot_kinetix_world_topology_abi_version\",\"_rundot_kinetix_world_topology_geometry_abi_version\",\"_rundot_kinetix_world_topology_geometry_command_stride\",\"_rundot_kinetix_world_topology_command_stride\",\"_rundot_kinetix_world_topology_result_stride\",\"_rundot_kinetix_world_topology_info_stride\",\"_rundot_kinetix_world_topology_max_commands\",\"_rundot_kinetix_world_topology_body_id_stride\",\"_rundot_kinetix_world_topology_joint_identity_stride\",\"_rundot_kinetix_world_topology_fluid_id_stride\",\"_rundot_kinetix_world_apply_topology_batch\",\"_rundot_kinetix_world_apply_topology_geometry_batch\",\"_rundot_kinetix_world_prepare_topology_edit\",\"_rundot_kinetix_world_copy_topology_edit_removed\",\"_rundot_kinetix_world_commit_topology_edit\",\"_rundot_kinetix_world_abandon_topology_edit\",\"_rundot_kinetix_world_body_geometry_info\",\"_rundot_kinetix_world_body_geometry_digest\",\"_rundot_kinetix_world_set_contact_groups\",\"_rundot_kinetix_world_copy_body_geometry\",\"_rundot_kinetix_world_topology_info\",\"_rundot_kinetix_world_copy_topology\",\"_rundot_kinetix_world_body_exists\",\"_rundot_kinetix_world_joint_exists\",\"_rundot_kinetix_world_fluid_exists\",\"_rundot_kinetix_world_read_body\",\"_rundot_kinetix_world_install_contact_materials\",\"_rundot_kinetix_world_read_material_name\",\"_rundot_kinetix_world_read_body_material\",\"_rundot_kinetix_world_read_body_filter\",\"_rundot_kinetix_world_read_body_bounds\",\"_rundot_kinetix_world_query_body\",\"_rundot_kinetix_world_query_hull\",\"_rundot_kinetix_world_resolve_contact_material\",\"_rundot_kinetix_world_read_joint\",\"_rundot_kinetix_world_update_joint\",\"_rundot_kinetix_world_read_joint_kinematics\",\"_rundot_kinetix_world_copy_joint_events\",\"_rundot_kinetix_world_read_fluid\",\"_rundot_kinetix_world_contact_output_info\",\"_rundot_kinetix_world_copy_contact_output\",\"_rundot_kinetix_world_select_contacts_info\",\"_rundot_kinetix_world_copy_selected_contacts\",\"_rundot_kinetix_world_body_move_event_count\",\"_rundot_kinetix_world_copy_body_move_events\",\"_rundot_kinetix_world_copy_contact_material_output\",\"_rundot_kinetix_world_joint_output_info\",\"_rundot_kinetix_world_copy_joint_output\",\"_rundot_kinetix_world_fluid_interaction_info\",\"_rundot_kinetix_world_copy_fluid_interactions\",\"_rundot_kinetix_world_max_handles\",\"_rundot_kinetix_world_buffer_allocate\",\"_rundot_kinetix_world_buffer_free\",\"_rundot_kinetix_world_create\",\"_rundot_kinetix_instance_ledger_info\",\"_rundot_kinetix_instance_ledger_metadata\",\"_rundot_kinetix_instance_ledger_classes\",\"_rundot_kinetix_instance_ledger_reset_high_water\",\"_rundot_kinetix_world_attach\",\"_rundot_kinetix_world_capture_cache_bytes\",\"_rundot_kinetix_world_checkpoint_capacity\",\"_rundot_kinetix_world_checkpoint_capture_snapshot_token\",\"_rundot_kinetix_world_checkpoint_capture_token\",\"_rundot_kinetix_world_checkpoint_legacy_preflight\",\"_rundot_kinetix_world_checkpoint_live_count\",\"_rundot_kinetix_world_checkpoint_preflight\",\"_rundot_kinetix_world_checkpoint_release_token\",\"_rundot_kinetix_world_checkpoint_restore_token\",\"_rundot_kinetix_world_create_with_checkpoint_capacity\",\"_rundot_kinetix_world_detach\",\"_rundot_kinetix_world_import_snapshot_attached\",\"_rundot_kinetix_world_ownership_counts\",\"_rundot_kinetix_world_revision\",\"_rundot_kinetix_world_destroy\",\"_rundot_kinetix_world_digest\",\"_rundot_kinetix_world_digest_algorithm_revision\",\"_rundot_kinetix_world_checkpoint_digest\",\"_rundot_kinetix_world_checkpoint_strong_digest\",\"_rundot_kinetix_world_checkpoint_strong_digest_token\",\"_rundot_kinetix_world_strong_digest_algorithm_revision\",\"_rundot_kinetix_world_checkpoint_digest_token\",\"_rundot_kinetix_world_checkpoint_view_info\",\"_rundot_kinetix_world_checkpoint_view_info_token\",\"_rundot_kinetix_world_checkpoint_write_body_motion_into\",\"_rundot_kinetix_world_checkpoint_write_body_motion_into_token\",\"_rundot_kinetix_world_checkpoint_copy_latest_output\",\"_rundot_kinetix_world_checkpoint_copy_latest_output_token\",\"_rundot_kinetix_world_checkpoint_import\",\"_rundot_kinetix_world_checkpoint_import_token\",\"_rundot_kinetix_world_frame\",\"_rundot_kinetix_world_replace_state\",\"_rundot_kinetix_world_step\",\"_rundot_kinetix_physics_route_counters\",\"_rundot_kinetix_world_apply_impulse\",\"_rundot_kinetix_world_set_body_force\",\"_rundot_kinetix_world_apply_force\",\"_rundot_kinetix_world_apply_force_at_point\",\"_rundot_kinetix_world_clear_body_force\",\"_rundot_kinetix_world_set_body_surface_velocity\",\"_rundot_kinetix_world_max_support_records\",\"_rundot_kinetix_world_apply_support\",\"_rundot_kinetix_world_read_surface_velocity\",\"_rundot_kinetix_world_read_body_mobility\",\"_rundot_kinetix_world_read_pending_support_impulse\",\"_rundot_kinetix_world_set_body_linear_velocity\",\"_rundot_kinetix_world_set_body_angular_velocity\",\"_rundot_kinetix_world_set_body_transform\",\"_rundot_kinetix_world_set_body_linear_damping\",\"_rundot_kinetix_world_apply_impulses\",\"_rundot_kinetix_world_set_body_property\",\"_rundot_kinetix_world_set_body_mass_data\",\"_rundot_kinetix_world_wake_body\",\"_rundot_kinetix_world_wake_connected\",\"_rundot_kinetix_world_write_body_motion\",\"_rundot_kinetix_world_read_body_activity_counts\",\"_rundot_kinetix_world_motion_pose_stride\",\"_rundot_kinetix_world_motion_velocity_stride\",\"_rundot_kinetix_world_motion_status_version\",\"_rundot_kinetix_world_motion_pose_value_limit\",\"_rundot_kinetix_world_motion_velocity_value_limit\",\"_rundot_kinetix_world_motion_id_word_limit\",\"_rundot_kinetix_world_motion_status_byte_limit\",\"_rundot_kinetix_physics_buoyancy\",\"_rundot_kinetix_physics_voxel_buoyancy\",\"_rundot_kinetix_physics_buoyancy_abi_version\",\"_rundot_kinetix_physics_buoyancy_input_stride\",\"_rundot_kinetix_physics_buoyancy_output_stride\",\"_rundot_kinetix_physics_fluid_abi_version\",\"_rundot_kinetix_physics_fluid_forces_input_stride\",\"_rundot_kinetix_physics_fluid_forces_output_stride\",\"_rundot_kinetix_physics_fluid_volume_input_stride\",\"_rundot_kinetix_physics_fluid_state_forces_input_stride\",\"_rundot_kinetix_physics_fluid_forces\",\"_rundot_kinetix_physics_fluid_state_forces\",\"_rundot_kinetix_physics_voxel_fluid_forces\",\"_rundot_kinetix_world_query\",\"_rundot_kinetix_world_query_body_ray\",\"_rundot_kinetix_world_query_ray_batch\",\"_rundot_kinetix_world_periodic_domain\",\"_rundot_kinetix_world_query_images\",\"_rundot_kinetix_world_query_ray_batch_images\",\"_rundot_kinetix_world_read_support_contexts\",\"_rundot_kinetix_world_set_contact_exclusions\",\"_rundot_kinetix_world_set_shape_exclusions\",\"_rundot_kinetix_world_set_contact_rules\",\"_rundot_kinetix_world_set_query_hidden_bodies\",\"_rundot_kinetix_world_set_query_index\",\"_rundot_kinetix_world_last_query_stats\",\"_rundot_kinetix_world_step_counters\",\"_rundot_kinetix_world_mover_query\",\"_rundot_kinetix_world_state_info\",\"_rundot_kinetix_world_copy_state\",\"_rundot_kinetix_world_capture_snapshot\",\"_rundot_kinetix_world_import_snapshot\",\"_rundot_kinetix_world_checkpoint_capture\",\"_rundot_kinetix_world_checkpoint_restore\",\"_rundot_kinetix_world_checkpoint_release\",\"_rundot_kinetix_world_checkpoint_capture_snapshot\",\"_rundot_kinetix_world_error_size\",\"_rundot_kinetix_world_error_command_index\",\"_rundot_kinetix_world_copy_error\",\"_rundot_kinetix_physics_abi_version\",\"_rundot_kinetix_physics_body_stride\",\"_rundot_kinetix_physics_set_geometry\",\"_rundot_kinetix_physics_set_contact_cache\",\"_rundot_kinetix_physics_set_external_forces\",\"_rundot_kinetix_physics_contact_count\",\"_rundot_kinetix_physics_contact_data\",\"_rundot_kinetix_physics_contact_cache_count\",\"_rundot_kinetix_physics_contact_cache_data\",\"_rundot_kinetix_physics_joint_count\",\"_rundot_kinetix_physics_joint_data\",\"_rundot_kinetix_physics_query_count\",\"_rundot_kinetix_physics_query_data\",\"_rundot_kinetix_physics_step\",\"_rundot_kinetix_physics_step_v2\",\"_rundot_kinetix_physics_step_v3\",\"_rundot_kinetix_physics_step_with_joints\",\"_rundot_kinetix_physics_step_with_joints_v2\",\"_rundot_kinetix_physics_step_with_joints_v3\",\"_rundot_kinetix_physics_apply_impulses\",\"_rundot_kinetix_physics_raycast\",\"_rundot_kinetix_physics_overlap\",\"_rundot_kinetix_physics_shape_cast\",\"_rundot_kinetix_ext_abi_version\",\"_rundot_kinetix_ext_gear_config_stride\",\"_rundot_kinetix_ext_gear_state_stride\",\"_rundot_kinetix_ext_gear_telemetry_stride\",\"_rundot_kinetix_ext_gear_stride\",\"_rundot_kinetix_ext_gear_size\",\"_rundot_kinetix_ext_gear_solve\",\"_rundot_kinetix_ext_gear_step\",\"_rundot_kinetix_ext_pulley_config_stride\",\"_rundot_kinetix_ext_pulley_state_stride\",\"_rundot_kinetix_ext_pulley_geometry_stride\",\"_rundot_kinetix_ext_pulley_stride\",\"_rundot_kinetix_ext_pulley_size\",\"_rundot_kinetix_ext_pulley_solve\",\"_rundot_kinetix_ext_pulley_compute_geometry\",\"_rundot_kinetix_ext_path_joint_stride\",\"_rundot_kinetix_ext_path_joint_sample_stride\",\"_rundot_kinetix_ext_path_joint_control_point_stride\",\"_rundot_kinetix_ext_path_joint_size\",\"_rundot_kinetix_ext_path_joint_cook\",\"_rundot_kinetix_ext_path_joint_sample\",\"_rundot_kinetix_ext_path_joint_closest_arc_length\",\"_rundot_kinetix_ext_path_joint_solve\",\"_rundot_kinetix_ext_particles_particle_stride\",\"_rundot_kinetix_ext_particles_emitter_stride\",\"_rundot_kinetix_ext_particles_params_stride\",\"_rundot_kinetix_ext_particles_max_capacity\",\"_rundot_kinetix_ext_particles_max_emitters\",\"_rundot_kinetix_ext_particles_stride\",\"_rundot_kinetix_ext_particles_size\",\"_rundot_kinetix_ext_particles_step\",\"_rundot_kinetix_ext_particles_emit\",\"_rundot_kinetix_ext_particles_reset\",\"_rundot_kinetix_ext_ragdoll_bone_stride\",\"_rundot_kinetix_ext_ragdoll_transform_stride\",\"_rundot_kinetix_ext_ragdoll_body_stride\",\"_rundot_kinetix_ext_ragdoll_joint_stride\",\"_rundot_kinetix_ext_ragdoll_max_bones\",\"_rundot_kinetix_ext_ragdoll_max_joints\",\"_rundot_kinetix_ext_ragdoll_max_filter_pairs\",\"_rundot_kinetix_ext_ragdoll_stride\",\"_rundot_kinetix_ext_ragdoll_size\",\"_rundot_kinetix_ext_ragdoll_construct\",\"_rundot_kinetix_ext_ragdoll_forward_kinematics\",\"_rundot_kinetix_ext_ragdoll_inverse_kinematics\",\"_rundot_kinetix_ext_ragdoll_constrain_pose\",\"_rundot_kinetix_ext_powertrain_config_stride\",\"_rundot_kinetix_ext_powertrain_state_stride\",\"_rundot_kinetix_ext_powertrain_input_stride\",\"_rundot_kinetix_ext_powertrain_wheel_state_stride\",\"_rundot_kinetix_ext_powertrain_wheel_output_stride\",\"_rundot_kinetix_ext_powertrain_max_wheels\",\"_rundot_kinetix_ext_powertrain_max_gears\",\"_rundot_kinetix_ext_powertrain_stride\",\"_rundot_kinetix_ext_powertrain_size\",\"_rundot_kinetix_ext_powertrain_step\",\"_rundot_kinetix_ext_powertrain_sample_engine_curve\",\"_rundot_kinetix_ext_rounded_convex_sphere_stride\",\"_rundot_kinetix_ext_rounded_convex_vertex_stride\",\"_rundot_kinetix_ext_rounded_convex_pose_stride\",\"_rundot_kinetix_ext_rounded_convex_direction_stride\",\"_rundot_kinetix_ext_rounded_convex_support_stride\",\"_rundot_kinetix_ext_rounded_convex_collision_stride\",\"_rundot_kinetix_ext_rounded_convex_mass_properties_stride\",\"_rundot_kinetix_ext_rounded_convex_ray_stride\",\"_rundot_kinetix_ext_rounded_convex_rayhit_stride\",\"_rundot_kinetix_ext_rounded_convex_max_spheres\",\"_rundot_kinetix_ext_rounded_convex_max_vertices\",\"_rundot_kinetix_ext_rounded_convex_input_stride\",\"_rundot_kinetix_ext_rounded_convex_output_stride\",\"_rundot_kinetix_ext_rounded_convex_stride\",\"_rundot_kinetix_ext_rounded_convex_size\",\"_rundot_kinetix_ext_rounded_convex_support\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_support\",\"_rundot_kinetix_ext_rounded_convex_collide\",\"_rundot_kinetix_ext_rounded_convex_collision\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_collide\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_collision\",\"_rundot_kinetix_ext_rounded_convex_compute_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_compute_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_multi_sphere_mass_properties\",\"_rundot_kinetix_ext_rounded_convex_raycast\",\"_rundot_kinetix_ext_surface_velocity_record_stride\",\"_rundot_kinetix_ext_surface_velocity_rule_stride\",\"_rundot_kinetix_ext_surface_velocity_properties_stride\",\"_rundot_kinetix_ext_surface_velocity_stride\",\"_rundot_kinetix_ext_surface_velocity_size\",\"_rundot_kinetix_ext_surface_velocity_evaluate_rules\",\"_rundot_kinetix_ext_surface_velocity_solve_conveyor_friction\",\"_rundot_kinetix_ext_surface_velocity_solve_friction\",\"_rundot_kinetix_ext_contact_material_record_version\",\"_rundot_kinetix_ext_contact_material_record_double_stride\",\"_rundot_kinetix_ext_contact_material_rule_double_stride\",\"_rundot_kinetix_ext_contact_material_result_double_stride\",\"_rundot_kinetix_ext_resolve_contact_material\",\"_rundot_kinetix_ext_serialize_contact_material_rules_versioned\",\"_rundot_kinetix_ext_deserialize_contact_material_rules_versioned\",\"_rundot_kinetix_ext_deformables_abi_version\",\"_rundot_kinetix_ext_cloth_node_stride\",\"_rundot_kinetix_ext_cloth_stretch_stride\",\"_rundot_kinetix_ext_cloth_shear_stride\",\"_rundot_kinetix_ext_cloth_bend_stride\",\"_rundot_kinetix_ext_cloth_face_stride\",\"_rundot_kinetix_ext_cloth_pin_stride\",\"_rundot_kinetix_ext_cloth_tether_stride\",\"_rundot_kinetix_ext_cloth_params_stride\",\"_rundot_kinetix_ext_cloth_max_nodes\",\"_rundot_kinetix_ext_cloth_max_faces\",\"_rundot_kinetix_ext_cloth_max_pins\",\"_rundot_kinetix_ext_cloth_stride\",\"_rundot_kinetix_ext_cloth_size\",\"_rundot_kinetix_ext_cloth_step\",\"_rundot_kinetix_ext_cloth_probe_size\",\"_rundot_kinetix_ext_cloth_probe\",\"_rundot_kinetix_ext_soft_body_abi_version\",\"_rundot_kinetix_ext_soft_body_node_stride\",\"_rundot_kinetix_ext_soft_body_tet_stride\",\"_rundot_kinetix_ext_soft_body_face_stride\",\"_rundot_kinetix_ext_soft_body_edge_stride\",\"_rundot_kinetix_ext_soft_body_anchor_stride\",\"_rundot_kinetix_ext_soft_body_params_stride\",\"_rundot_kinetix_ext_soft_body_max_nodes\",\"_rundot_kinetix_ext_soft_body_max_tetrahedra\",\"_rundot_kinetix_ext_soft_body_max_edges\",\"_rundot_kinetix_ext_soft_body_max_faces\",\"_rundot_kinetix_ext_soft_body_size\",\"_rundot_kinetix_ext_soft_body_step\",\"_rundot_kinetix_ext_soft_body_compute_volume\",\"_rundot_kinetix_ext_soft_body_solve_volume\",\"_rundot_kinetix_ext_soft_body_apply_pressure\",\"_rundot_kinetix_ext_soft_body_handle_inversion\",\"_rundot_kinetix_ext_soft_body_probe_size\",\"_rundot_kinetix_ext_soft_body_probe\",\"_rundot_kinetix_ext_soft_collision_abi_version\",\"_rundot_kinetix_ext_soft_node_stride\",\"_rundot_kinetix_ext_soft_face_stride\",\"_rundot_kinetix_ext_soft_body_stride\",\"_rundot_kinetix_ext_soft_params_stride\",\"_rundot_kinetix_ext_soft_rigid_contact_stride\",\"_rundot_kinetix_ext_soft_soft_contact_stride\",\"_rundot_kinetix_ext_soft_sensor_event_stride\",\"_rundot_kinetix_ext_soft_raycast_query_stride\",\"_rundot_kinetix_ext_soft_raycast_hit_stride\",\"_rundot_kinetix_ext_soft_overlap_query_stride\",\"_rundot_kinetix_ext_soft_overlap_hit_stride\",\"_rundot_kinetix_ext_soft_closest_point_query_stride\",\"_rundot_kinetix_ext_soft_closest_point_result_stride\",\"_rundot_kinetix_ext_soft_max_nodes\",\"_rundot_kinetix_ext_soft_max_faces\",\"_rundot_kinetix_ext_soft_max_bodies\",\"_rundot_kinetix_ext_soft_max_contacts\",\"_rundot_kinetix_ext_soft_max_sensor_events\",\"_rundot_kinetix_ext_soft_max_exclusions\",\"_rundot_kinetix_ext_soft_stride\",\"_rundot_kinetix_ext_soft_size\",\"_rundot_kinetix_ext_soft_collision_stride\",\"_rundot_kinetix_ext_soft_collision_size\",\"_rundot_kinetix_ext_soft_rigid_solve\",\"_rundot_kinetix_ext_soft_soft_solve\",\"_rundot_kinetix_ext_soft_step\",\"_rundot_kinetix_ext_soft_raycast\",\"_rundot_kinetix_ext_soft_overlap_sphere\",\"_rundot_kinetix_ext_soft_overlap_aabb\",\"_rundot_kinetix_ext_soft_closest_point\",\"_rundot_kinetix_ext_fracture_abi_version\",\"_rundot_kinetix_ext_fracture_vertex_stride\",\"_rundot_kinetix_ext_fracture_constraint_stride\",\"_rundot_kinetix_ext_fracture_face_stride\",\"_rundot_kinetix_ext_fracture_event_stride\",\"_rundot_kinetix_ext_fracture_audit_stride\",\"_rundot_kinetix_ext_fracture_snapshot_header_stride\",\"_rundot_kinetix_ext_fracture_cutting_tool_stride\",\"_rundot_kinetix_ext_fracture_params_stride\",\"_rundot_kinetix_ext_fracture_max_vertices\",\"_rundot_kinetix_ext_fracture_max_constraints\",\"_rundot_kinetix_ext_fracture_max_faces\",\"_rundot_kinetix_ext_fracture_max_events\",\"_rundot_kinetix_ext_fracture_max_fragments\",\"_rundot_kinetix_ext_fracture_stride\",\"_rundot_kinetix_ext_fracture_size\",\"_rundot_kinetix_ext_fracture_create_grid\",\"_rundot_kinetix_ext_fracture_step\",\"_rundot_kinetix_ext_fracture_cut\",\"_rundot_kinetix_ext_fracture_tear_constraint\",\"_rundot_kinetix_ext_fracture_split_vertex\",\"_rundot_kinetix_ext_fracture_find_components\",\"_rundot_kinetix_ext_fracture_audit_mass\",\"_rundot_kinetix_ext_fracture_capture_snapshot\",\"_rundot_kinetix_ext_fracture_restore_snapshot\",\"_rundot_kinetix_ext_sdf_abi_version\",\"_rundot_kinetix_ext_custom_geometry_abi_version\",\"_rundot_kinetix_ext_sdf_grid_desc_stride\",\"_rundot_kinetix_ext_sdf_pose_stride\",\"_rundot_kinetix_ext_sdf_query_input_stride\",\"_rundot_kinetix_ext_sdf_query_output_stride\",\"_rundot_kinetix_ext_sdf_collision_stride\",\"_rundot_kinetix_ext_sdf_ray_stride\",\"_rundot_kinetix_ext_sdf_rayhit_stride\",\"_rundot_kinetix_ext_custom_geometry_desc_stride\",\"_rundot_kinetix_ext_sdf_stride\",\"_rundot_kinetix_ext_sdf_size\",\"_rundot_kinetix_ext_custom_geometry_stride\",\"_rundot_kinetix_ext_custom_geometry_size\",\"_rundot_kinetix_ext_sdf_cook_primitive\",\"_rundot_kinetix_ext_sdf_cook_csg\",\"_rundot_kinetix_ext_sdf_compute_conservative_bounds\",\"_rundot_kinetix_ext_sdf_sample\",\"_rundot_kinetix_ext_sdf_raycast\",\"_rundot_kinetix_ext_sdf_collide_sphere\",\"_rundot_kinetix_ext_sdf_collide_capsule\",\"_rundot_kinetix_ext_sdf_collide_box\",\"_rundot_kinetix_ext_sdf_collide_particles\",\"_rundot_kinetix_ext_custom_geometry_bounds\",\"_rundot_kinetix_ext_custom_geometry_evaluate\",\"_rundot_kinetix_ext_custom_geometry_raycast\",\"_rundot_kinetix_ext_deformable_abi_version\",\"_rundot_kinetix_ext_deformable_snapshot_version\",\"_rundot_kinetix_ext_deformable_node_stride\",\"_rundot_kinetix_ext_deformable_triangle_stride\",\"_rundot_kinetix_ext_deformable_tetra_stride\",\"_rundot_kinetix_ext_deformable_constraint_stride\",\"_rundot_kinetix_ext_deformable_contact_stride\",\"_rundot_kinetix_ext_deformable_pressure_stride\",\"_rundot_kinetix_ext_deformable_ray_query_stride\",\"_rundot_kinetix_ext_deformable_ray_hit_stride\",\"_rundot_kinetix_ext_deformable_overlap_query_stride\",\"_rundot_kinetix_ext_deformable_overlap_result_stride\",\"_rundot_kinetix_ext_deformable_sweep_query_stride\",\"_rundot_kinetix_ext_deformable_sweep_hit_stride\",\"_rundot_kinetix_ext_deformable_snapshot_header_size\",\"_rundot_kinetix_ext_deformable_stride\",\"_rundot_kinetix_ext_deformable_size\",\"_rundot_kinetix_ext_deformable_raycast\",\"_rundot_kinetix_ext_deformable_overlap\",\"_rundot_kinetix_ext_deformable_sweep\",\"_rundot_kinetix_ext_deformable_closest_point\",\"_rundot_kinetix_ext_deformable_snapshot_size\",\"_rundot_kinetix_ext_deformable_capture_snapshot\",\"_rundot_kinetix_ext_deformable_restore_snapshot\",\"_rundot_kinetix_ext_deformable_verify_snapshot\",\"_rundot_kinetix_ext_deformable_compute_bounds\",\"_rundot_kinetix_ext_deformable_compute_volume\",\"_rundot_kinetix_ext_d18_abi_version\",\"_rundot_kinetix_ext_d18_node_stride\",\"_rundot_kinetix_ext_d18_segment_stride\",\"_rundot_kinetix_ext_d18_face_stride\",\"_rundot_kinetix_ext_d18_distance_constraint_stride\",\"_rundot_kinetix_ext_d18_bend_constraint_stride\",\"_rundot_kinetix_ext_d18_shear_constraint_stride\",\"_rundot_kinetix_ext_d18_area_constraint_stride\",\"_rundot_kinetix_ext_d18_anchor_stride\",\"_rundot_kinetix_ext_d18_particle_stride\",\"_rundot_kinetix_ext_d18_emitter_stride\",\"_rundot_kinetix_ext_d18_params_stride\",\"_rundot_kinetix_ext_d18_rigid_body_stride\",\"_rundot_kinetix_ext_d18_raycast_query_stride\",\"_rundot_kinetix_ext_d18_raycast_hit_stride\",\"_rundot_kinetix_ext_d18_closest_point_query_stride\",\"_rundot_kinetix_ext_d18_closest_point_hit_stride\",\"_rundot_kinetix_ext_d18_overlap_query_stride\",\"_rundot_kinetix_ext_d18_overlap_hit_stride\",\"_rundot_kinetix_ext_d18_world_size\",\"_rundot_kinetix_ext_d18_stride\",\"_rundot_kinetix_ext_d18_size\",\"_rundot_kinetix_ext_d18_step\",\"_rundot_kinetix_ext_d18_step_raw\",\"_rundot_kinetix_ext_d18_add_rope\",\"_rundot_kinetix_ext_d18_add_cloth_grid\",\"_rundot_kinetix_ext_d18_add_particle\",\"_rundot_kinetix_ext_d18_raycast\",\"_rundot_kinetix_ext_d18_closest_point\",\"_rundot_kinetix_ext_d18_overlap\",\"_rundot_kinetix_ext_d18_capture_snapshot\",\"_rundot_kinetix_ext_d18_restore_snapshot\",\"_rundot_kinetix_ext_d18_compute_mass_properties\",\"_rundot_kinetix_ext_planar_deformable_abi_version\",\"_rundot_kinetix_ext_planar_deformable_node_stride\",\"_rundot_kinetix_ext_planar_deformable_segment_stride\",\"_rundot_kinetix_ext_planar_deformable_face_stride\",\"_rundot_kinetix_ext_planar_deformable_distance_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_bend_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_shear_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_area_constraint_stride\",\"_rundot_kinetix_ext_planar_deformable_anchor_stride\",\"_rundot_kinetix_ext_planar_deformable_particle_stride\",\"_rundot_kinetix_ext_planar_deformable_emitter_stride\",\"_rundot_kinetix_ext_planar_deformable_params_stride\",\"_rundot_kinetix_ext_planar_deformable_rigid_body_stride\",\"_rundot_kinetix_ext_planar_deformable_raycast_query_stride\",\"_rundot_kinetix_ext_planar_deformable_raycast_hit_stride\",\"_rundot_kinetix_ext_planar_deformable_closest_point_query_stride\",\"_rundot_kinetix_ext_planar_deformable_closest_point_hit_stride\",\"_rundot_kinetix_ext_planar_deformable_overlap_query_stride\",\"_rundot_kinetix_ext_planar_deformable_overlap_hit_stride\",\"_rundot_kinetix_ext_planar_deformable_world_size\",\"_rundot_kinetix_ext_planar_deformable_stride\",\"_rundot_kinetix_ext_planar_deformable_size\",\"_rundot_kinetix_ext_planar_deformable_step\",\"_rundot_kinetix_ext_planar_deformable_step_raw\",\"_rundot_kinetix_ext_planar_deformable_add_rope\",\"_rundot_kinetix_ext_planar_deformable_add_cloth_grid\",\"_rundot_kinetix_ext_planar_deformable_add_particle\",\"_rundot_kinetix_ext_planar_deformable_raycast\",\"_rundot_kinetix_ext_planar_deformable_closest_point\",\"_rundot_kinetix_ext_planar_deformable_overlap\",\"_rundot_kinetix_ext_planar_deformable_capture_snapshot\",\"_rundot_kinetix_ext_planar_deformable_restore_snapshot\",\"_rundot_kinetix_ext_planar_deformable_compute_mass_properties\",\"_rundot_kinetix_ext_characters_abi_version\",\"_rundot_kinetix_ext_powered_ragdoll_abi_version\",\"_rundot_kinetix_ext_powered_ragdoll_config_stride\",\"_rundot_kinetix_ext_powered_ragdoll_joint_config_stride\",\"_rundot_kinetix_ext_powered_ragdoll_joint_state_stride\",\"_rundot_kinetix_ext_powered_ragdoll_hit_stride\",\"_rundot_kinetix_ext_powered_ragdoll_transform_stride\",\"_rundot_kinetix_ext_powered_ragdoll_stride\",\"_rundot_kinetix_ext_powered_ragdoll_size\",\"_rundot_kinetix_ext_powered_ragdoll_max_bones\",\"_rundot_kinetix_ext_powered_ragdoll_max_joints\",\"_rundot_kinetix_ext_powered_ragdoll_state_size\",\"_rundot_kinetix_ext_powered_ragdoll_step\",\"_rundot_kinetix_ext_powered_ragdoll_apply_hit\",\"_rundot_kinetix_ext_powered_ragdoll_blend_pose\",\"_rundot_kinetix_ext_powered_ragdoll_recover_pose\",\"_rundot_kinetix_ext_powered_ragdoll_capture_state\",\"_rundot_kinetix_ext_powered_ragdoll_restore_state\",\"_rundot_kinetix_ext_voxel_abi_version\",\"_rundot_kinetix_ext_voxel_child_stride\",\"_rundot_kinetix_ext_voxel_stats_stride\",\"_rundot_kinetix_ext_voxel_subchunk_stride\",\"_rundot_kinetix_ext_voxel_ray_hit_stride\",\"_rundot_kinetix_ext_voxel_seam_result_stride\",\"_rundot_kinetix_ext_voxel_stride\",\"_rundot_kinetix_ext_voxel_size\",\"_rundot_kinetix_ext_voxel_max_dimension\",\"_rundot_kinetix_ext_voxel_scratch_size\",\"_rundot_kinetix_ext_voxel_cook_chunk\",\"_rundot_kinetix_ext_voxel_carve\",\"_rundot_kinetix_ext_voxel_incremental_cook\",\"_rundot_kinetix_ext_voxel_split_components\",\"_rundot_kinetix_ext_voxel_incremental_slice\",\"_rundot_kinetix_ext_voxel_raycast_dda\",\"_rundot_kinetix_ext_voxel_seam_query\",\"_rundot_kinetix_ext_k09_abi_version\",\"_rundot_kinetix_ext_k09_body_stride\",\"_rundot_kinetix_ext_k09_header_stride\",\"_rundot_kinetix_ext_k09_query_stride\",\"_rundot_kinetix_ext_k09_result_stride\",\"_rundot_kinetix_ext_k09_max_frames\",\"_rundot_kinetix_ext_k09_max_bodies\",\"_rundot_kinetix_ext_k09_max_results\",\"_rundot_kinetix_ext_lag_compensation_stride\",\"_rundot_kinetix_ext_lag_compensation_size\",\"_rundot_kinetix_ext_k09_stride\",\"_rundot_kinetix_ext_k09_size\",\"_rundot_kinetix_ext_k09_reset\",\"_rundot_kinetix_ext_k09_record_frame\",\"_rundot_kinetix_ext_k09_has_tick\",\"_rundot_kinetix_ext_k09_oldest_tick\",\"_rundot_kinetix_ext_k09_newest_tick\",\"_rundot_kinetix_ext_k09_frame_count\",\"_rundot_kinetix_ext_k09_query_topology\",\"_rundot_kinetix_ext_k09_query_body\",\"_rundot_kinetix_ext_k09_query_body_by_index\",\"_rundot_kinetix_ext_k09_query_filter\",\"_rundot_kinetix_ext_k09_query_geometry\",\"_rundot_kinetix_ext_k09_query_pose\",\"_rundot_kinetix_ext_k09_query_interpolated_pose\",\"_rundot_kinetix_ext_k09_rewind_scene\",\"_rundot_kinetix_ext_k09_rewind_scene_interpolated\",\"_rundot_kinetix_ext_k09_raycast\",\"_rundot_kinetix_ext_k09_overlap\",\"_rundot_kinetix_ext_k09_shapecast\",\"_rundot_kinetix_ext_lag_compensation_abi_version\",\"_rundot_kinetix_ext_lag_compensation_body_stride\",\"_rundot_kinetix_ext_lag_compensation_header_stride\",\"_rundot_kinetix_ext_lag_compensation_query_stride\",\"_rundot_kinetix_ext_lag_compensation_result_stride\",\"_rundot_kinetix_ext_lag_compensation_max_frames\",\"_rundot_kinetix_ext_lag_compensation_max_bodies\",\"_rundot_kinetix_ext_lag_compensation_max_results\",\"_rundot_kinetix_ext_lag_compensation_reset\",\"_rundot_kinetix_ext_lag_compensation_record_frame\",\"_rundot_kinetix_ext_lag_compensation_has_tick\",\"_rundot_kinetix_ext_lag_compensation_oldest_tick\",\"_rundot_kinetix_ext_lag_compensation_newest_tick\",\"_rundot_kinetix_ext_lag_compensation_frame_count\",\"_rundot_kinetix_ext_lag_compensation_query_topology\",\"_rundot_kinetix_ext_lag_compensation_query_body\",\"_rundot_kinetix_ext_lag_compensation_query_body_by_index\",\"_rundot_kinetix_ext_lag_compensation_query_filter\",\"_rundot_kinetix_ext_lag_compensation_query_geometry\",\"_rundot_kinetix_ext_lag_compensation_query_pose\",\"_rundot_kinetix_ext_lag_compensation_query_interpolated_pose\",\"_rundot_kinetix_ext_lag_compensation_rewind_scene\",\"_rundot_kinetix_ext_lag_compensation_rewind_scene_interpolated\",\"_rundot_kinetix_ext_lag_compensation_raycast\",\"_rundot_kinetix_ext_lag_compensation_overlap\",\"_rundot_kinetix_ext_lag_compensation_shapecast\",\"_rundot_kinetix_ext_articulation_abi_version\",\"_rundot_kinetix_ext_articulation_link_stride\",\"_rundot_kinetix_ext_articulation_joint_stride\",\"_rundot_kinetix_ext_articulation_state_stride\",\"_rundot_kinetix_ext_articulation_loop_stride\",\"_rundot_kinetix_ext_articulation_stride\",\"_rundot_kinetix_ext_articulation_size\",\"_rundot_kinetix_ext_articulation_max_links\",\"_rundot_kinetix_ext_articulation_max_dofs\",\"_rundot_kinetix_ext_articulation_max_loops\",\"_rundot_kinetix_ext_articulation_step\",\"_rundot_kinetix_ext_articulation_forward_kinematics\",\"_rundot_kinetix_ext_articulation_solve_loops\",\"_rundot_kinetix_ext_articulation_sync_bodies\",\"_rundot_kinetix_ext_vehicles_abi_version\",\"_rundot_kinetix_ext_tracks_abi_version\",\"_rundot_kinetix_ext_tracks_wheel_stride\",\"_rundot_kinetix_ext_tracks_track_config_stride\",\"_rundot_kinetix_ext_tracks_vehicle_config_stride\",\"_rundot_kinetix_ext_tracks_input_stride\",\"_rundot_kinetix_ext_tracks_state_stride\",\"_rundot_kinetix_ext_tracks_output_stride\",\"_rundot_kinetix_ext_tracks_max_wheels_per_track\",\"_rundot_kinetix_ext_tracks_max_tracks\",\"_rundot_kinetix_ext_tracks_stride\",\"_rundot_kinetix_ext_tracks_size\",\"_rundot_kinetix_ext_tracks_step_vehicle\",\"_rundot_kinetix_ext_tracks_step\",\"_rundot_kinetix_ext_tracks_evaluate_friction\",\"_rundot_kinetix_ext_tracks_differential_steering\",\"_rundot_kinetix_ext_motorcycle_abi_version\",\"_rundot_kinetix_ext_motorcycle_config_stride\",\"_rundot_kinetix_ext_motorcycle_input_stride\",\"_rundot_kinetix_ext_motorcycle_state_stride\",\"_rundot_kinetix_ext_motorcycle_output_stride\",\"_rundot_kinetix_ext_motorcycle_stride\",\"_rundot_kinetix_ext_motorcycle_size\",\"_rundot_kinetix_ext_motorcycle_step\",\"_rundot_kinetix_ext_motorcycle_lean_stability\",\"_rundot_kinetix_ext_motorcycle_countersteer\",\"_rundot_kinetix_ext_platformer2d_abi_version\",\"_rundot_kinetix_ext_platformer2d_state_stride\",\"_rundot_kinetix_ext_platformer2d_input_stride\",\"_rundot_kinetix_ext_platformer2d_config_stride\",\"_rundot_kinetix_ext_platformer2d_body_stride\",\"_rundot_kinetix_ext_platformer2d_event_stride\",\"_rundot_kinetix_ext_platformer2d_max_events\",\"_rundot_kinetix_ext_platformer2d_max_bodies\",\"_rundot_kinetix_ext_platformer2d_max_slide_iterations\",\"_rundot_kinetix_ext_platformer2d_stride\",\"_rundot_kinetix_ext_platformer2d_size\",\"_rundot_kinetix_ext_platformer2d_step\",\"_rundot_kinetix_ext_platformer2d_step_legacy\",\"_rundot_kinetix_ext_core_features_abi_version\",\"_rundot_kinetix_ext_character_abi_version\",\"_rundot_kinetix_ext_character_config_stride\",\"_rundot_kinetix_ext_character_config_size\",\"_rundot_kinetix_ext_character_input_stride\",\"_rundot_kinetix_ext_character_input_size\",\"_rundot_kinetix_ext_character_state_stride\",\"_rundot_kinetix_ext_character_state_size\",\"_rundot_kinetix_ext_character_hit_stride\",\"_rundot_kinetix_ext_character_hit_size\",\"_rundot_kinetix_ext_character_shape_stride\",\"_rundot_kinetix_ext_character_shape_size\",\"_rundot_kinetix_ext_character_stride\",\"_rundot_kinetix_ext_character_size\",\"_rundot_kinetix_ext_character_step\",\"_rundot_kinetix_ext_character_reset\",\"_rundot_kinetix_ext_character_init_config\",\"_rundot_kinetix_ext_character_init_state\",\"_rundot_kinetix_ext_distance_abi_version\",\"_rundot_kinetix_ext_distance_input_stride\",\"_rundot_kinetix_ext_distance_input_size\",\"_rundot_kinetix_ext_distance_options_stride\",\"_rundot_kinetix_ext_distance_options_size\",\"_rundot_kinetix_ext_distance_output_stride\",\"_rundot_kinetix_ext_distance_output_size\",\"_rundot_kinetix_ext_distance_result_stride\",\"_rundot_kinetix_ext_distance_result_size\",\"_rundot_kinetix_ext_distance_shape_stride\",\"_rundot_kinetix_ext_distance_shape_size\",\"_rundot_kinetix_ext_distance_stride\",\"_rundot_kinetix_ext_distance_size\",\"_rundot_kinetix_ext_distance_shape_distance\",\"_rundot_kinetix_ext_distance_point_distance\",\"_rundot_kinetix_ext_distance_solve\",\"_rundot_kinetix_ext_distance_reset\",\"_rundot_kinetix_ext_mass_properties_abi_version\",\"_rundot_kinetix_ext_mass_properties_shape_stride\",\"_rundot_kinetix_ext_mass_properties_output_stride\",\"_rundot_kinetix_ext_mass_properties_compute\",\"_rundot_kinetix_ext_mass_properties_diagonalize\",\"_rundot_kinetix_ext_mass_properties_is_positive_definite\",\"_rundot_kinetix_ext_hull_cook_output_stride\",\"_rundot_kinetix_ext_hull_cook\",\"_rundot_kinetix_ext_rope_abi_version\",\"_rundot_kinetix_ext_rope_node_stride\",\"_rundot_kinetix_ext_rope_node_size\",\"_rundot_kinetix_ext_rope_segment_stride\",\"_rundot_kinetix_ext_rope_segment_size\",\"_rundot_kinetix_ext_rope_bend_stride\",\"_rundot_kinetix_ext_rope_bend_size\",\"_rundot_kinetix_ext_rope_twist_stride\",\"_rundot_kinetix_ext_rope_twist_size\",\"_rundot_kinetix_ext_rope_anchor_stride\",\"_rundot_kinetix_ext_rope_anchor_size\",\"_rundot_kinetix_ext_rope_params_stride\",\"_rundot_kinetix_ext_rope_params_size\",\"_rundot_kinetix_ext_rope_break_event_stride\",\"_rundot_kinetix_ext_rope_break_event_size\",\"_rundot_kinetix_ext_rope_max_nodes\",\"_rundot_kinetix_ext_rope_max_segments\",\"_rundot_kinetix_ext_rope_max_anchors\",\"_rundot_kinetix_ext_rope_max_break_events\",\"_rundot_kinetix_ext_rope_stride\",\"_rundot_kinetix_ext_rope_size\",\"_rundot_kinetix_ext_rope_probe_size\",\"_rundot_kinetix_ext_rope_probe\",\"_rundot_kinetix_ext_rope_step\",\"_rundot_kinetix_ext_rope_solve\",\"_rundot_kinetix_ext_rope_reset\",\"_rundot_kinetix_ext_vehicle_abi_version\",\"_rundot_kinetix_ext_vehicle_wheel_stride\",\"_rundot_kinetix_ext_vehicle_wheel_size\",\"_rundot_kinetix_ext_vehicle_contact_stride\",\"_rundot_kinetix_ext_vehicle_contact_size\",\"_rundot_kinetix_ext_vehicle_chassis_stride\",\"_rundot_kinetix_ext_vehicle_chassis_size\",\"_rundot_kinetix_ext_vehicle_surface_stride\",\"_rundot_kinetix_ext_vehicle_surface_size\",\"_rundot_kinetix_ext_vehicle_triangle_stride\",\"_rundot_kinetix_ext_vehicle_triangle_size\",\"_rundot_kinetix_ext_vehicle_comparison_stride\",\"_rundot_kinetix_ext_vehicle_comparison_size\",\"_rundot_kinetix_ext_vehicle_max_triangles\",\"_rundot_kinetix_ext_vehicle_stride\",\"_rundot_kinetix_ext_vehicle_size\",\"_rundot_kinetix_ext_vehicle_raycast_wheel\",\"_rundot_kinetix_ext_vehicle_shapecast_wheel\",\"_rundot_kinetix_ext_vehicle_evaluate_wheel\",\"_rundot_kinetix_ext_vehicle_compare_wheel\",\"_rundot_kinetix_ext_vehicle_solve_wheel\",\"_rundot_kinetix_ext_vehicle_step\",\"_rundot_kinetix_ext_vehicle_reset_contact\"]"
|
|
51
51
|
],
|
|
52
|
-
"simulationSourceHash": "
|
|
52
|
+
"simulationSourceHash": "34b4e953a20fa416dc77d35cbecbe9e0aa3c91c0a8f1e039f6cb8ac4526d9ba8"
|
|
53
53
|
});
|
|
54
54
|
// The bytes ship beside this module. The loader checks them against wasmSha256 before use.
|
|
55
55
|
export function physicsWasmUrl() {
|
|
Binary file
|
|
@@ -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.80",
|
|
54
54
|
"compilerFlags": [
|
|
55
55
|
"-std=c++20",
|
|
56
56
|
"-O3",
|
|
@@ -1177,6 +1177,13 @@ function solveActive(world, reader, chassisId, chassisMotion, definition, input,
|
|
|
1177
1177
|
}
|
|
1178
1178
|
return { wheels, tires, chassis };
|
|
1179
1179
|
}
|
|
1180
|
+
// Canonical wheel order: body-frame localAnchor, z then x, then wheel index. The order does not depend on the
|
|
1181
|
+
// wheel array order in the definition. Used for both the native rows and the tire solve.
|
|
1182
|
+
function canonicalWheelCompare(definition, a, b) {
|
|
1183
|
+
const wa = definition.wheels[a].localAnchor;
|
|
1184
|
+
const wb = definition.wheels[b].localAnchor;
|
|
1185
|
+
return (wa.z - wb.z) || (wa.x - wb.x) || (a - b);
|
|
1186
|
+
}
|
|
1180
1187
|
function applyTireDirect(chassis, tire, ix, iy, iz) {
|
|
1181
1188
|
integrateDirect(chassis, ix, iy, iz, tire.chassisArm);
|
|
1182
1189
|
integrateDirect(tire.support, -ix, -iy, -iz, tire.supportArm);
|
|
@@ -1185,63 +1192,143 @@ function applyTire(chassis, tire, impulse) {
|
|
|
1185
1192
|
integrateDirect(chassis, impulse.x, impulse.y, impulse.z, tire.chassisArm);
|
|
1186
1193
|
integrateDirect(tire.support, -impulse.x, -impulse.y, -impulse.z, tire.supportArm);
|
|
1187
1194
|
}
|
|
1188
|
-
|
|
1195
|
+
// Mirror pair rule: two wheels pair when they sit on opposite sides of the chassis (opposite sign of x), at equal
|
|
1196
|
+
// |x| and equal z, within PAIR_EPS metres. The test uses the body-frame wheel anchor, so the chassis pose does not
|
|
1197
|
+
// change the pairs. A wheel with x = 0 never pairs.
|
|
1198
|
+
const PAIR_EPS = 1e-9;
|
|
1199
|
+
function isMirrorPair(definition, a, b) {
|
|
1200
|
+
const wa = definition.wheels[a].localAnchor;
|
|
1201
|
+
const wb = definition.wheels[b].localAnchor;
|
|
1202
|
+
return Math.abs(wa.x) > PAIR_EPS
|
|
1203
|
+
&& Math.abs(Math.abs(wa.x) - Math.abs(wb.x)) <= PAIR_EPS
|
|
1204
|
+
&& Math.abs(wa.z - wb.z) <= PAIR_EPS
|
|
1205
|
+
&& Math.sign(wa.x) !== Math.sign(wb.x);
|
|
1206
|
+
}
|
|
1207
|
+
// Solve units for the tire solve. Input is in canonical order. Pairing rule: a mirror pair is solved as one unit,
|
|
1208
|
+
// and the pairs come first, in canonical order. Unpaired wheels solve after the pairs, one at a time, in canonical
|
|
1209
|
+
// order. Why: a one-by-one solve is Gauss-Seidel. The first wheel of a pair moves the chassis before the second
|
|
1210
|
+
// wheel reads it, so the pair is biased toward whichever wheel solves first. The mirror pair removes that bias
|
|
1211
|
+
// and makes the result independent of the wheel array order and symmetric in left and right.
|
|
1212
|
+
function tireSolveUnits(definition, tires) {
|
|
1213
|
+
const units = [];
|
|
1214
|
+
const grouped = new Array(tires.length).fill(false);
|
|
1215
|
+
for (let i = 0; i < tires.length; i += 1) {
|
|
1216
|
+
if (grouped[i])
|
|
1217
|
+
continue;
|
|
1218
|
+
for (let j = i + 1; j < tires.length; j += 1) {
|
|
1219
|
+
if (!grouped[j] && isMirrorPair(definition, tires[i].index, tires[j].index)) {
|
|
1220
|
+
grouped[i] = true;
|
|
1221
|
+
grouped[j] = true;
|
|
1222
|
+
units.push([tires[i], tires[j]]);
|
|
1223
|
+
break;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
for (let i = 0; i < tires.length; i += 1) {
|
|
1228
|
+
if (!grouped[i])
|
|
1229
|
+
units.push([tires[i]]);
|
|
1230
|
+
}
|
|
1231
|
+
return units;
|
|
1232
|
+
}
|
|
1233
|
+
function driveStep(tire) {
|
|
1234
|
+
if (tire.drive === 0)
|
|
1235
|
+
return { forward: tire.lambdaForward, side: tire.lambdaSide, driveAdded: tire.driveAdded };
|
|
1236
|
+
clipDisk(tire.lambdaForward, tire.lambdaSide, tire.lambdaForward + tire.drive, tire.lambdaSide, tire.disk);
|
|
1237
|
+
return { forward: clippedDiskResult.forward, side: clippedDiskResult.side, driveAdded: clippedDiskResult.forward };
|
|
1238
|
+
}
|
|
1239
|
+
function frictionStep(chassis, tire, from) {
|
|
1240
|
+
const oldForward = from.forward;
|
|
1241
|
+
const oldSide = from.side;
|
|
1242
|
+
const armCx = tire.point.x - chassis.com.x;
|
|
1243
|
+
const armCy = tire.point.y - chassis.com.y;
|
|
1244
|
+
const armCz = tire.point.z - chassis.com.z;
|
|
1245
|
+
const vCx = chassis.velocity.linear.x + (chassis.velocity.angular.y * armCz - chassis.velocity.angular.z * armCy) + chassis.surface.x;
|
|
1246
|
+
const vCy = chassis.velocity.linear.y + (chassis.velocity.angular.z * armCx - chassis.velocity.angular.x * armCz) + chassis.surface.y;
|
|
1247
|
+
const vCz = chassis.velocity.linear.z + (chassis.velocity.angular.x * armCy - chassis.velocity.angular.y * armCx) + chassis.surface.z;
|
|
1248
|
+
const support = tire.support;
|
|
1249
|
+
const armSx = tire.point.x - support.com.x;
|
|
1250
|
+
const armSy = tire.point.y - support.com.y;
|
|
1251
|
+
const armSz = tire.point.z - support.com.z;
|
|
1252
|
+
const vSx = support.velocity.linear.x + (support.velocity.angular.y * armSz - support.velocity.angular.z * armSy) + support.surface.x;
|
|
1253
|
+
const vSy = support.velocity.linear.y + (support.velocity.angular.z * armSx - support.velocity.angular.x * armSz) + support.surface.y;
|
|
1254
|
+
const vSz = support.velocity.linear.z + (support.velocity.angular.x * armSy - support.velocity.angular.y * armSx) + support.surface.z;
|
|
1255
|
+
const relX = vCx - vSx;
|
|
1256
|
+
const relY = vCy - vSy;
|
|
1257
|
+
const relZ = vCz - vSz;
|
|
1258
|
+
const dotForward = relX * tire.forward.x + relY * tire.forward.y + relZ * tire.forward.z;
|
|
1259
|
+
const dotSide = relX * tire.side.x + relY * tire.side.y + relZ * tire.side.z;
|
|
1260
|
+
let passive = from.forward - from.driveAdded;
|
|
1261
|
+
if (tire.kForward > 0)
|
|
1262
|
+
passive += -dotForward / tire.kForward;
|
|
1263
|
+
if (passive > tire.box)
|
|
1264
|
+
passive = tire.box;
|
|
1265
|
+
if (passive < -tire.box)
|
|
1266
|
+
passive = -tire.box;
|
|
1267
|
+
let nextSide = from.side;
|
|
1268
|
+
if (tire.kSide > 0)
|
|
1269
|
+
nextSide += -dotSide / tire.kSide;
|
|
1270
|
+
clipDisk(oldForward, oldSide, from.driveAdded + passive, nextSide, tire.disk);
|
|
1271
|
+
const df = clippedDiskResult.forward - tire.lambdaForward;
|
|
1272
|
+
const ds = clippedDiskResult.side - tire.lambdaSide;
|
|
1273
|
+
return {
|
|
1274
|
+
ix: tire.forward.x * df + tire.side.x * ds,
|
|
1275
|
+
iy: tire.forward.y * df + tire.side.y * ds,
|
|
1276
|
+
iz: tire.forward.z * df + tire.side.z * ds,
|
|
1277
|
+
forward: clippedDiskResult.forward,
|
|
1278
|
+
side: clippedDiskResult.side,
|
|
1279
|
+
driveAdded: from.driveAdded,
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
function assertTireMobility(tire) {
|
|
1283
|
+
if (!Number.isFinite(tire.kForward) || !Number.isFinite(tire.kSide)) {
|
|
1284
|
+
fail('physics.vehicle-invalid', 'tire mobility is not finite.');
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
// Single-wheel unit. The drive is applied to the chassis on pass 0, and the friction step reads the result.
|
|
1288
|
+
function solveSingleTire(chassis, tire, iteration) {
|
|
1289
|
+
assertTireMobility(tire);
|
|
1290
|
+
if (iteration === 0 && tire.drive !== 0) {
|
|
1291
|
+
const drive = driveStep(tire);
|
|
1292
|
+
const df = drive.forward - tire.lambdaForward;
|
|
1293
|
+
const ds = drive.side - tire.lambdaSide;
|
|
1294
|
+
applyTireDirect(chassis, tire, tire.forward.x * df + tire.side.x * ds, tire.forward.y * df + tire.side.y * ds, tire.forward.z * df + tire.side.z * ds);
|
|
1295
|
+
tire.lambdaForward = drive.forward;
|
|
1296
|
+
tire.lambdaSide = drive.side;
|
|
1297
|
+
tire.driveAdded = drive.driveAdded;
|
|
1298
|
+
}
|
|
1299
|
+
const friction = frictionStep(chassis, tire, { forward: tire.lambdaForward, side: tire.lambdaSide, driveAdded: tire.driveAdded });
|
|
1300
|
+
applyTireDirect(chassis, tire, friction.ix, friction.iy, friction.iz);
|
|
1301
|
+
tire.lambdaForward = friction.forward;
|
|
1302
|
+
tire.lambdaSide = friction.side;
|
|
1303
|
+
}
|
|
1304
|
+
// Mirror pair unit. Both wheels read the chassis velocity from one snapshot, and both impulses apply after both
|
|
1305
|
+
// reads. Neither wheel sees the other's push in the same pass. The next pass does.
|
|
1306
|
+
function solveMirrorPair(chassis, a, b, iteration) {
|
|
1307
|
+
assertTireMobility(a);
|
|
1308
|
+
assertTireMobility(b);
|
|
1309
|
+
const driveA = iteration === 0 ? driveStep(a) : { forward: a.lambdaForward, side: a.lambdaSide, driveAdded: a.driveAdded };
|
|
1310
|
+
const driveB = iteration === 0 ? driveStep(b) : { forward: b.lambdaForward, side: b.lambdaSide, driveAdded: b.driveAdded };
|
|
1311
|
+
const frictionA = frictionStep(chassis, a, driveA);
|
|
1312
|
+
const frictionB = frictionStep(chassis, b, driveB);
|
|
1313
|
+
applyTireDirect(chassis, a, frictionA.ix, frictionA.iy, frictionA.iz);
|
|
1314
|
+
applyTireDirect(chassis, b, frictionB.ix, frictionB.iy, frictionB.iz);
|
|
1315
|
+
a.lambdaForward = frictionA.forward;
|
|
1316
|
+
a.lambdaSide = frictionA.side;
|
|
1317
|
+
a.driveAdded = frictionA.driveAdded;
|
|
1318
|
+
b.lambdaForward = frictionB.forward;
|
|
1319
|
+
b.lambdaSide = frictionB.side;
|
|
1320
|
+
b.driveAdded = frictionB.driveAdded;
|
|
1321
|
+
}
|
|
1322
|
+
function solveTires(chassis, tires, definition) {
|
|
1323
|
+
const units = tireSolveUnits(definition, tires);
|
|
1189
1324
|
for (let iteration = 0; iteration < tireIterations; iteration += 1) {
|
|
1190
|
-
for (const
|
|
1191
|
-
if (
|
|
1192
|
-
|
|
1325
|
+
for (const unit of units) {
|
|
1326
|
+
if (unit.length === 2) {
|
|
1327
|
+
solveMirrorPair(chassis, unit[0], unit[1], iteration);
|
|
1193
1328
|
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
const df = clippedDiskResult.forward - tire.lambdaForward;
|
|
1197
|
-
const ds = clippedDiskResult.side - tire.lambdaSide;
|
|
1198
|
-
const ix = tire.forward.x * df + tire.side.x * ds;
|
|
1199
|
-
const iy = tire.forward.y * df + tire.side.y * ds;
|
|
1200
|
-
const iz = tire.forward.z * df + tire.side.z * ds;
|
|
1201
|
-
applyTireDirect(chassis, tire, ix, iy, iz);
|
|
1202
|
-
tire.lambdaForward = clippedDiskResult.forward;
|
|
1203
|
-
tire.lambdaSide = clippedDiskResult.side;
|
|
1204
|
-
tire.driveAdded = clippedDiskResult.forward;
|
|
1329
|
+
else {
|
|
1330
|
+
solveSingleTire(chassis, unit[0], iteration);
|
|
1205
1331
|
}
|
|
1206
|
-
const oldForward = tire.lambdaForward;
|
|
1207
|
-
const oldSide = tire.lambdaSide;
|
|
1208
|
-
const armCx = tire.point.x - chassis.com.x;
|
|
1209
|
-
const armCy = tire.point.y - chassis.com.y;
|
|
1210
|
-
const armCz = tire.point.z - chassis.com.z;
|
|
1211
|
-
const vCx = chassis.velocity.linear.x + (chassis.velocity.angular.y * armCz - chassis.velocity.angular.z * armCy) + chassis.surface.x;
|
|
1212
|
-
const vCy = chassis.velocity.linear.y + (chassis.velocity.angular.z * armCx - chassis.velocity.angular.x * armCz) + chassis.surface.y;
|
|
1213
|
-
const vCz = chassis.velocity.linear.z + (chassis.velocity.angular.x * armCy - chassis.velocity.angular.y * armCx) + chassis.surface.z;
|
|
1214
|
-
const support = tire.support;
|
|
1215
|
-
const armSx = tire.point.x - support.com.x;
|
|
1216
|
-
const armSy = tire.point.y - support.com.y;
|
|
1217
|
-
const armSz = tire.point.z - support.com.z;
|
|
1218
|
-
const vSx = support.velocity.linear.x + (support.velocity.angular.y * armSz - support.velocity.angular.z * armSy) + support.surface.x;
|
|
1219
|
-
const vSy = support.velocity.linear.y + (support.velocity.angular.z * armSx - support.velocity.angular.x * armSz) + support.surface.y;
|
|
1220
|
-
const vSz = support.velocity.linear.z + (support.velocity.angular.x * armSy - support.velocity.angular.y * armSx) + support.surface.z;
|
|
1221
|
-
const relX = vCx - vSx;
|
|
1222
|
-
const relY = vCy - vSy;
|
|
1223
|
-
const relZ = vCz - vSz;
|
|
1224
|
-
const dotForward = relX * tire.forward.x + relY * tire.forward.y + relZ * tire.forward.z;
|
|
1225
|
-
const dotSide = relX * tire.side.x + relY * tire.side.y + relZ * tire.side.z;
|
|
1226
|
-
let passive = tire.lambdaForward - tire.driveAdded;
|
|
1227
|
-
if (tire.kForward > 0)
|
|
1228
|
-
passive += -dotForward / tire.kForward;
|
|
1229
|
-
if (passive > tire.box)
|
|
1230
|
-
passive = tire.box;
|
|
1231
|
-
if (passive < -tire.box)
|
|
1232
|
-
passive = -tire.box;
|
|
1233
|
-
let nextSide = tire.lambdaSide;
|
|
1234
|
-
if (tire.kSide > 0)
|
|
1235
|
-
nextSide += -dotSide / tire.kSide;
|
|
1236
|
-
clipDisk(oldForward, oldSide, tire.driveAdded + passive, nextSide, tire.disk);
|
|
1237
|
-
const df = clippedDiskResult.forward - oldForward;
|
|
1238
|
-
const ds = clippedDiskResult.side - oldSide;
|
|
1239
|
-
const ix = tire.forward.x * df + tire.side.x * ds;
|
|
1240
|
-
const iy = tire.forward.y * df + tire.side.y * ds;
|
|
1241
|
-
const iz = tire.forward.z * df + tire.side.z * ds;
|
|
1242
|
-
applyTireDirect(chassis, tire, ix, iy, iz);
|
|
1243
|
-
tire.lambdaForward = clippedDiskResult.forward;
|
|
1244
|
-
tire.lambdaSide = clippedDiskResult.side;
|
|
1245
1332
|
}
|
|
1246
1333
|
}
|
|
1247
1334
|
}
|
|
@@ -1493,10 +1580,12 @@ export function stepDeterministicVehicleState3D(definition, state, input, world,
|
|
|
1493
1580
|
[active.chassis.id.toString(), cloneVelocity(active.chassis.velocity)],
|
|
1494
1581
|
...active.tires.map((tire) => [solvedKey(tire.support), cloneVelocity(tire.support.velocity)]),
|
|
1495
1582
|
]);
|
|
1496
|
-
solveTires(active.chassis, active.tires);
|
|
1583
|
+
solveTires(active.chassis, [...active.tires].sort((a, b) => canonicalWheelCompare(definitionSpec, a.index, b.index)), definitionSpec);
|
|
1497
1584
|
restoreVelocities(active.chassis, active.tires, preTire);
|
|
1498
1585
|
const springRows = [];
|
|
1499
1586
|
const forces = [];
|
|
1587
|
+
const forceWheel = [];
|
|
1588
|
+
const springWheel = [];
|
|
1500
1589
|
const micros = active.wheels.map((wheel) => stateSpec.wheels[wheel.index].micro);
|
|
1501
1590
|
const spinDelta = active.wheels.map(() => 0);
|
|
1502
1591
|
for (const tire of active.tires) {
|
|
@@ -1509,6 +1598,7 @@ export function stepDeterministicVehicleState3D(definition, state, input, world,
|
|
|
1509
1598
|
if (impulse.x !== 0 || impulse.y !== 0 || impulse.z !== 0) {
|
|
1510
1599
|
const force = scale(impulse, 1 / info.dt);
|
|
1511
1600
|
const portal = active.wheels[tire.index].hit?.portal;
|
|
1601
|
+
forceWheel.push(tire.index);
|
|
1512
1602
|
forces.push(Object.freeze({
|
|
1513
1603
|
body: active.chassis.id,
|
|
1514
1604
|
support: tire.support.id,
|
|
@@ -1547,6 +1637,7 @@ export function stepDeterministicVehicleState3D(definition, state, input, world,
|
|
|
1547
1637
|
if (!wheel.grounded || wheel.hit === undefined || wheel.support === undefined)
|
|
1548
1638
|
continue;
|
|
1549
1639
|
const portal = wheel.hit.portal;
|
|
1640
|
+
springWheel.push(wheel.index);
|
|
1550
1641
|
springRows.push(Object.freeze({
|
|
1551
1642
|
body: active.chassis.id,
|
|
1552
1643
|
support: wheel.support.id,
|
|
@@ -1563,9 +1654,11 @@ export function stepDeterministicVehicleState3D(definition, state, input, world,
|
|
|
1563
1654
|
...(portal === undefined ? {} : { portal: Object.freeze({ pair: portal.pair, end: portal.end }) }),
|
|
1564
1655
|
}));
|
|
1565
1656
|
}
|
|
1657
|
+
const forcePerm = forces.map((_, i) => i).sort((i, j) => canonicalWheelCompare(definitionSpec, forceWheel[i], forceWheel[j]) || (i - j));
|
|
1658
|
+
const springPerm = springRows.map((_, i) => i).sort((i, j) => canonicalWheelCompare(definitionSpec, springWheel[i], springWheel[j]) || (i - j));
|
|
1566
1659
|
const records = Object.freeze({
|
|
1567
|
-
springRows: Object.freeze(springRows),
|
|
1568
|
-
forces: Object.freeze(forces),
|
|
1660
|
+
springRows: Object.freeze(springPerm.map((i) => springRows[i])),
|
|
1661
|
+
forces: Object.freeze(forcePerm.map((i) => forces[i])),
|
|
1569
1662
|
});
|
|
1570
1663
|
const supportRemoved = active.wheels.some((wheel) => wheel.removed);
|
|
1571
1664
|
if (supportRemoved && wakeReason === undefined) {
|
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.80",
|
|
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/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",
|
|
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-edge-tie-translation.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",
|
|
@@ -310,6 +310,8 @@
|
|
|
310
310
|
"test:rc1-physics-types": "npm run build && tsc -p tests/rc1-physics-types.tsconfig.json",
|
|
311
311
|
"test:sanitizers": "node scripts/run-native-sanitizers.mjs",
|
|
312
312
|
"bench:wreck-yard": "node bench/wreck-yard-profile.mjs",
|
|
313
|
+
"bench:throughput": "node bench/box3d-throughput.mjs",
|
|
314
|
+
"test:bit-identity": "node bench/bit-identity-trace.mjs --check tests/golden/bit-identity-trace.json",
|
|
313
315
|
"test:partner-closure": "node --expose-gc --import tsx --test --test-concurrency=1 tests/physics-saved-checkpoint.test.ts tests/checkpoint-sharing-memory.test.ts tests/physics-identity-integration.test.ts tests/grab-servo-state.test.ts tests/movement3d-physics-step-ceiling.test.ts tests/physics-motion-mutations.test.ts tests/physics-checkpoint-motion.test.ts tests/physics-edit-atomic.test.ts tests/physics-batch-motion.test.ts tests/movement3d-revision1-baseline.test.ts tests/physics-profile-init.test.ts tests/physics-profile-bundle.test.ts core/tests/physics-checkpoint-publication.test.mjs tests/physics-edit-result-graph.test.ts core/tests/physics-runtime-controller.test.mjs tests/physics-runtime-attachment.test.ts tests/physics-installed-checkpoint.test.ts tests/physics-installed-runtime.test.ts tests/networked-strong-report.test.ts tests/physics-installed-state-commitment.test.ts tests/game-byte-section.test.ts tests/physics-game-codec3d.test.ts",
|
|
314
316
|
"test:physics-unit-types": "tsc --noEmit --target ES2022 --module NodeNext --moduleResolution NodeNext --strict --skipLibCheck false tests/physics-si-required.fixture.ts tests/physics-si-required-2d.fixture.ts tests/grab-servo-types.fixture.ts tests/physics-unit-quantities.fixture.ts tests/physics-si-2d-helpers.fixture.ts tests/physics-si-3d-features.fixture.ts tests/physics-vehicle-support-types.fixture.ts tests/physics-si-surface.fixture.ts tests/physics-voxel-regions-types.fixture.ts tests/physics-si-pulley.fixture.ts tests/vehicle-state3d-types.fixture.ts tests/physics-motion-mutations-types.fixture.ts tests/physics-si-rope-gear-powertrain.fixture.ts tests/voxel-body-state-types.fixture.ts tests/physics-runtime-controller-types.fixture.ts tests/physics-installed-runtime-types.fixture.ts tests/game-byte-section-types.fixture.ts tests/owned-runtime-report-domain-types.fixture.ts tests/wreck-yard-rc33-gaps-types.fixture.ts",
|
|
315
317
|
"test:physics-unit-constructors": "node --import tsx --test tests/physics-unit-constructors.test.ts tests/physics-unit-conversions.test.ts",
|