@series-inc/rundot-syncplay 5.23.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +610 -0
- package/dist/animation.d.ts +119 -0
- package/dist/animation.js +488 -0
- package/dist/asset-cooking.d.ts +82 -0
- package/dist/asset-cooking.js +364 -0
- package/dist/authority-room.d.ts +217 -0
- package/dist/authority-room.js +701 -0
- package/dist/bot-documents.d.ts +115 -0
- package/dist/bot-documents.js +549 -0
- package/dist/bot-primitives.d.ts +152 -0
- package/dist/bot-primitives.js +472 -0
- package/dist/browser.d.ts +57 -0
- package/dist/browser.js +53 -0
- package/dist/canonical.d.ts +12 -0
- package/dist/canonical.js +288 -0
- package/dist/certification.d.ts +455 -0
- package/dist/certification.js +1855 -0
- package/dist/chaos-certification.d.ts +56 -0
- package/dist/chaos-certification.js +1397 -0
- package/dist/cjs/animation.js +495 -0
- package/dist/cjs/asset-cooking.js +372 -0
- package/dist/cjs/authority-room.js +704 -0
- package/dist/cjs/bot-documents.js +556 -0
- package/dist/cjs/bot-primitives.js +482 -0
- package/dist/cjs/browser.js +96 -0
- package/dist/cjs/canonical.js +299 -0
- package/dist/cjs/certification.js +1860 -0
- package/dist/cjs/chaos-certification.js +1402 -0
- package/dist/cjs/collections.js +36 -0
- package/dist/cjs/collision.js +96 -0
- package/dist/cjs/commands.js +987 -0
- package/dist/cjs/config-bundle.js +491 -0
- package/dist/cjs/creator.js +30 -0
- package/dist/cjs/deterministic-primitives.js +134 -0
- package/dist/cjs/deterministic-session.js +1410 -0
- package/dist/cjs/ecs-lite.js +155 -0
- package/dist/cjs/effects-adapter.js +97 -0
- package/dist/cjs/engine-complete.js +2297 -0
- package/dist/cjs/engine-core-proof.js +70 -0
- package/dist/cjs/engine-parity-matrix.js +874 -0
- package/dist/cjs/engine-parity.js +3183 -0
- package/dist/cjs/engine-runtime.js +3141 -0
- package/dist/cjs/errors.js +22 -0
- package/dist/cjs/events.js +247 -0
- package/dist/cjs/examples/counter-duel.js +157 -0
- package/dist/cjs/examples/fixed-arena.js +368 -0
- package/dist/cjs/index.js +229 -0
- package/dist/cjs/input-authority.js +150 -0
- package/dist/cjs/input-button.js +256 -0
- package/dist/cjs/input-timeline.js +418 -0
- package/dist/cjs/instant-replay.js +66 -0
- package/dist/cjs/lag-compensation3d.js +837 -0
- package/dist/cjs/local-authority-server-runner.js +1121 -0
- package/dist/cjs/local-authority-wire.js +1497 -0
- package/dist/cjs/local-authority.js +817 -0
- package/dist/cjs/local-ws-adapter.js +150 -0
- package/dist/cjs/match-log.js +61 -0
- package/dist/cjs/math.js +157 -0
- package/dist/cjs/mock-network-adapter.js +26 -0
- package/dist/cjs/movement.js +703 -0
- package/dist/cjs/movement3d.js +1246 -0
- package/dist/cjs/multiclient-authority.js +308 -0
- package/dist/cjs/multiplayer-service.js +434 -0
- package/dist/cjs/navigation.js +347 -0
- package/dist/cjs/navmesh.js +1437 -0
- package/dist/cjs/networked-client.js +691 -0
- package/dist/cjs/networked-input-authority.js +443 -0
- package/dist/cjs/node.js +47 -0
- package/dist/cjs/number-lab.js +78 -0
- package/dist/cjs/offline-session.js +370 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/pause-resume.js +43 -0
- package/dist/cjs/physics-cert.js +426 -0
- package/dist/cjs/physics2d.js +751 -0
- package/dist/cjs/physics3d.js +1996 -0
- package/dist/cjs/prediction-culling.js +203 -0
- package/dist/cjs/protocol-lab.js +1299 -0
- package/dist/cjs/r3f-render-adapter.js +209 -0
- package/dist/cjs/random.js +59 -0
- package/dist/cjs/replay-bundle.js +1598 -0
- package/dist/cjs/replay-inspect.js +236 -0
- package/dist/cjs/replay-scoring.js +68 -0
- package/dist/cjs/replay.js +356 -0
- package/dist/cjs/reports.js +181 -0
- package/dist/cjs/rollback-history.js +251 -0
- package/dist/cjs/runtime-guards.js +111 -0
- package/dist/cjs/sample-lab.js +145 -0
- package/dist/cjs/sample-scenes.js +752 -0
- package/dist/cjs/schema-artifacts.js +359 -0
- package/dist/cjs/schema-codegen.js +544 -0
- package/dist/cjs/schema-dsl-binary.js +655 -0
- package/dist/cjs/schema.js +319 -0
- package/dist/cjs/sdk-offline.js +99 -0
- package/dist/cjs/session-promotion.js +74 -0
- package/dist/cjs/session-snapshot.js +265 -0
- package/dist/cjs/session-wire.js +216 -0
- package/dist/cjs/signals.js +103 -0
- package/dist/cjs/sparse-set.js +169 -0
- package/dist/cjs/synctest.js +136 -0
- package/dist/cjs/system-lifecycle.js +286 -0
- package/dist/cjs/timers.js +61 -0
- package/dist/cjs/tools/static-checker.js +1468 -0
- package/dist/cjs/types.js +2 -0
- package/dist/cjs/venus-mp-budget.js +125 -0
- package/dist/cjs/ws-frame.js +255 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +11379 -0
- package/dist/collections.d.ts +9 -0
- package/dist/collections.js +30 -0
- package/dist/collision.d.ts +25 -0
- package/dist/collision.js +85 -0
- package/dist/commands.d.ts +137 -0
- package/dist/commands.js +977 -0
- package/dist/config-bundle.d.ts +89 -0
- package/dist/config-bundle.js +483 -0
- package/dist/creator.d.ts +20 -0
- package/dist/creator.js +11 -0
- package/dist/deterministic-primitives.d.ts +59 -0
- package/dist/deterministic-primitives.js +126 -0
- package/dist/deterministic-session.d.ts +197 -0
- package/dist/deterministic-session.js +1401 -0
- package/dist/ecs-lite.d.ts +26 -0
- package/dist/ecs-lite.js +152 -0
- package/dist/effects-adapter.d.ts +21 -0
- package/dist/effects-adapter.js +94 -0
- package/dist/engine-complete.d.ts +45 -0
- package/dist/engine-complete.js +2292 -0
- package/dist/engine-core-proof.d.ts +26 -0
- package/dist/engine-core-proof.js +66 -0
- package/dist/engine-parity-matrix.d.ts +300 -0
- package/dist/engine-parity-matrix.js +869 -0
- package/dist/engine-parity.d.ts +74 -0
- package/dist/engine-parity.js +3178 -0
- package/dist/engine-runtime.d.ts +351 -0
- package/dist/engine-runtime.js +3123 -0
- package/dist/errors.d.ts +11 -0
- package/dist/errors.js +17 -0
- package/dist/events.d.ts +45 -0
- package/dist/events.js +242 -0
- package/dist/examples/counter-duel.d.ts +43 -0
- package/dist/examples/counter-duel.js +150 -0
- package/dist/examples/fixed-arena.d.ts +110 -0
- package/dist/examples/fixed-arena.js +356 -0
- package/dist/index.d.ts +101 -0
- package/dist/index.js +66 -0
- package/dist/input-authority.d.ts +82 -0
- package/dist/input-authority.js +147 -0
- package/dist/input-button.d.ts +36 -0
- package/dist/input-button.js +249 -0
- package/dist/input-timeline.d.ts +65 -0
- package/dist/input-timeline.js +412 -0
- package/dist/instant-replay.d.ts +59 -0
- package/dist/instant-replay.js +62 -0
- package/dist/lag-compensation3d.d.ts +146 -0
- package/dist/lag-compensation3d.js +827 -0
- package/dist/local-authority-server-runner.d.ts +79 -0
- package/dist/local-authority-server-runner.js +1118 -0
- package/dist/local-authority-wire.d.ts +142 -0
- package/dist/local-authority-wire.js +1477 -0
- package/dist/local-authority.d.ts +160 -0
- package/dist/local-authority.js +810 -0
- package/dist/local-ws-adapter.d.ts +14 -0
- package/dist/local-ws-adapter.js +146 -0
- package/dist/match-log.d.ts +74 -0
- package/dist/match-log.js +57 -0
- package/dist/math.d.ts +41 -0
- package/dist/math.js +154 -0
- package/dist/mock-network-adapter.d.ts +13 -0
- package/dist/mock-network-adapter.js +23 -0
- package/dist/movement.d.ts +155 -0
- package/dist/movement.js +694 -0
- package/dist/movement3d.d.ts +195 -0
- package/dist/movement3d.js +1238 -0
- package/dist/multiclient-authority.d.ts +30 -0
- package/dist/multiclient-authority.js +305 -0
- package/dist/multiplayer-service.d.ts +153 -0
- package/dist/multiplayer-service.js +429 -0
- package/dist/navigation.d.ts +91 -0
- package/dist/navigation.js +338 -0
- package/dist/navmesh.d.ts +236 -0
- package/dist/navmesh.js +1423 -0
- package/dist/networked-client.d.ts +124 -0
- package/dist/networked-client.js +688 -0
- package/dist/networked-input-authority.d.ts +51 -0
- package/dist/networked-input-authority.js +439 -0
- package/dist/node.d.ts +22 -0
- package/dist/node.js +19 -0
- package/dist/number-lab.d.ts +15 -0
- package/dist/number-lab.js +75 -0
- package/dist/offline-session.d.ts +2 -0
- package/dist/offline-session.js +367 -0
- package/dist/pause-resume.d.ts +48 -0
- package/dist/pause-resume.js +40 -0
- package/dist/physics-cert.d.ts +40 -0
- package/dist/physics-cert.js +389 -0
- package/dist/physics2d.d.ts +142 -0
- package/dist/physics2d.js +741 -0
- package/dist/physics3d.d.ts +285 -0
- package/dist/physics3d.js +1979 -0
- package/dist/prediction-culling.d.ts +34 -0
- package/dist/prediction-culling.js +200 -0
- package/dist/protocol-lab.d.ts +115 -0
- package/dist/protocol-lab.js +1295 -0
- package/dist/r3f-render-adapter.d.ts +61 -0
- package/dist/r3f-render-adapter.js +203 -0
- package/dist/random.d.ts +13 -0
- package/dist/random.js +55 -0
- package/dist/replay-bundle.d.ts +150 -0
- package/dist/replay-bundle.js +1586 -0
- package/dist/replay-inspect.d.ts +60 -0
- package/dist/replay-inspect.js +228 -0
- package/dist/replay-scoring.d.ts +28 -0
- package/dist/replay-scoring.js +65 -0
- package/dist/replay.d.ts +17 -0
- package/dist/replay.js +351 -0
- package/dist/reports.d.ts +176 -0
- package/dist/reports.js +174 -0
- package/dist/rollback-history.d.ts +46 -0
- package/dist/rollback-history.js +247 -0
- package/dist/runtime-guards.d.ts +1 -0
- package/dist/runtime-guards.js +108 -0
- package/dist/sample-lab.d.ts +32 -0
- package/dist/sample-lab.js +134 -0
- package/dist/sample-scenes.d.ts +86 -0
- package/dist/sample-scenes.js +745 -0
- package/dist/schema-artifacts.d.ts +49 -0
- package/dist/schema-artifacts.js +356 -0
- package/dist/schema-codegen.d.ts +21 -0
- package/dist/schema-codegen.js +538 -0
- package/dist/schema-dsl-binary.d.ts +75 -0
- package/dist/schema-dsl-binary.js +648 -0
- package/dist/schema.d.ts +87 -0
- package/dist/schema.js +315 -0
- package/dist/sdk-offline.d.ts +34 -0
- package/dist/sdk-offline.js +96 -0
- package/dist/session-promotion.d.ts +26 -0
- package/dist/session-promotion.js +70 -0
- package/dist/session-snapshot.d.ts +95 -0
- package/dist/session-snapshot.js +255 -0
- package/dist/session-wire.d.ts +89 -0
- package/dist/session-wire.js +211 -0
- package/dist/signals.d.ts +31 -0
- package/dist/signals.js +99 -0
- package/dist/sparse-set.d.ts +34 -0
- package/dist/sparse-set.js +165 -0
- package/dist/synctest.d.ts +31 -0
- package/dist/synctest.js +133 -0
- package/dist/system-lifecycle.d.ts +72 -0
- package/dist/system-lifecycle.js +281 -0
- package/dist/timers.d.ts +17 -0
- package/dist/timers.js +53 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/static-checker.d.ts +31 -0
- package/dist/tools/static-checker.js +1462 -0
- package/dist/tools/vite-plugin.d.ts +69 -0
- package/dist/tools/vite-plugin.js +203 -0
- package/dist/types.d.ts +148 -0
- package/dist/types.js +1 -0
- package/dist/venus-mp-budget.d.ts +29 -0
- package/dist/venus-mp-budget.js +122 -0
- package/dist/ws-frame.d.ts +49 -0
- package/dist/ws-frame.js +247 -0
- package/package.json +169 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { type DeterministicPhysicsMaterial } from './deterministic-primitives.js';
|
|
2
|
+
export type DeterministicPhysicsShape3D = {
|
|
3
|
+
readonly type: 'box';
|
|
4
|
+
readonly halfX: number;
|
|
5
|
+
readonly halfY: number;
|
|
6
|
+
readonly halfZ: number;
|
|
7
|
+
} | {
|
|
8
|
+
readonly type: 'sphere';
|
|
9
|
+
readonly radius: number;
|
|
10
|
+
} | {
|
|
11
|
+
readonly type: 'capsule';
|
|
12
|
+
readonly radius: number;
|
|
13
|
+
readonly halfHeight: number;
|
|
14
|
+
} | {
|
|
15
|
+
readonly type: 'mesh';
|
|
16
|
+
readonly vertices: readonly {
|
|
17
|
+
readonly x: number;
|
|
18
|
+
readonly y: number;
|
|
19
|
+
readonly z: number;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
export declare const deterministicPhysicsCallback3D: {
|
|
23
|
+
readonly collisionEnter: 1;
|
|
24
|
+
readonly collisionStay: 2;
|
|
25
|
+
readonly collisionExit: 4;
|
|
26
|
+
readonly triggerEnter: 8;
|
|
27
|
+
readonly triggerStay: 16;
|
|
28
|
+
readonly triggerExit: 32;
|
|
29
|
+
};
|
|
30
|
+
export type DeterministicPhysicsCallbackMask3D = number;
|
|
31
|
+
export interface DeterministicPhysicsBody3D {
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly kind: 'static' | 'dynamic' | 'kinematic';
|
|
34
|
+
readonly x: number;
|
|
35
|
+
readonly y: number;
|
|
36
|
+
readonly z: number;
|
|
37
|
+
readonly vx: number;
|
|
38
|
+
readonly vy: number;
|
|
39
|
+
readonly vz: number;
|
|
40
|
+
readonly rx?: number;
|
|
41
|
+
readonly ry?: number;
|
|
42
|
+
readonly rz?: number;
|
|
43
|
+
readonly avx?: number;
|
|
44
|
+
readonly avy?: number;
|
|
45
|
+
readonly avz?: number;
|
|
46
|
+
readonly inertia?: number;
|
|
47
|
+
readonly shape: DeterministicPhysicsShape3D;
|
|
48
|
+
readonly layer: number;
|
|
49
|
+
readonly mask: number;
|
|
50
|
+
readonly trigger?: boolean;
|
|
51
|
+
readonly sensor?: boolean;
|
|
52
|
+
readonly callbackMask?: DeterministicPhysicsCallbackMask3D;
|
|
53
|
+
readonly material?: DeterministicPhysicsMaterial;
|
|
54
|
+
}
|
|
55
|
+
export interface DeterministicPhysicsWorld3D {
|
|
56
|
+
readonly frame: number;
|
|
57
|
+
readonly bodies: readonly DeterministicPhysicsBody3D[];
|
|
58
|
+
readonly activePairs: readonly string[];
|
|
59
|
+
readonly activePairMetadata: readonly DeterministicPhysicsActivePair3D[];
|
|
60
|
+
}
|
|
61
|
+
export interface DeterministicPhysicsActivePair3D {
|
|
62
|
+
readonly pair: string;
|
|
63
|
+
readonly a: string;
|
|
64
|
+
readonly b: string;
|
|
65
|
+
readonly trigger: boolean;
|
|
66
|
+
readonly sensor: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface DeterministicPhysicsQueryOptions3D {
|
|
69
|
+
readonly layerMask?: number;
|
|
70
|
+
readonly includeTriggers?: boolean;
|
|
71
|
+
readonly includeSensors?: boolean;
|
|
72
|
+
readonly hitStatics?: boolean;
|
|
73
|
+
readonly hitDynamics?: boolean;
|
|
74
|
+
readonly hitKinematics?: boolean;
|
|
75
|
+
readonly hitSolids?: boolean;
|
|
76
|
+
readonly hitTriggers?: boolean;
|
|
77
|
+
readonly hitSensors?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface DeterministicPhysicsRaycastQuery3D extends DeterministicPhysicsQueryOptions3D {
|
|
80
|
+
readonly id?: string;
|
|
81
|
+
readonly x: number;
|
|
82
|
+
readonly y: number;
|
|
83
|
+
readonly z: number;
|
|
84
|
+
readonly dx: number;
|
|
85
|
+
readonly dy: number;
|
|
86
|
+
readonly dz: number;
|
|
87
|
+
readonly maxDistance: number;
|
|
88
|
+
}
|
|
89
|
+
export interface DeterministicPhysicsOverlapQuery3D extends DeterministicPhysicsQueryOptions3D {
|
|
90
|
+
readonly id?: string;
|
|
91
|
+
readonly shape: DeterministicPhysicsShape3D;
|
|
92
|
+
readonly x: number;
|
|
93
|
+
readonly y: number;
|
|
94
|
+
readonly z: number;
|
|
95
|
+
}
|
|
96
|
+
export interface DeterministicPhysicsShapeCastQuery3D extends DeterministicPhysicsOverlapQuery3D {
|
|
97
|
+
readonly dx: number;
|
|
98
|
+
readonly dy: number;
|
|
99
|
+
readonly dz: number;
|
|
100
|
+
readonly maxDistance: number;
|
|
101
|
+
}
|
|
102
|
+
export interface DeterministicPhysicsHit3D {
|
|
103
|
+
readonly bodyId: string;
|
|
104
|
+
readonly distance: number;
|
|
105
|
+
}
|
|
106
|
+
export interface DeterministicPhysicsDetailedHit3D extends DeterministicPhysicsHit3D {
|
|
107
|
+
readonly point: Point3D;
|
|
108
|
+
readonly normal: Point3D;
|
|
109
|
+
readonly penetration: number;
|
|
110
|
+
}
|
|
111
|
+
export interface DeterministicPhysicsScheduledQuery3D {
|
|
112
|
+
readonly id: string;
|
|
113
|
+
readonly phase: 'pre-physics' | 'post-physics';
|
|
114
|
+
readonly query: DeterministicPhysicsRaycastQuery3D | DeterministicPhysicsOverlapQuery3D | DeterministicPhysicsShapeCastQuery3D;
|
|
115
|
+
}
|
|
116
|
+
export type DeterministicPhysicsConstraint3D = {
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly type: 'fixed';
|
|
119
|
+
readonly a: string;
|
|
120
|
+
readonly b: string;
|
|
121
|
+
readonly offsetX: number;
|
|
122
|
+
readonly offsetY: number;
|
|
123
|
+
readonly offsetZ: number;
|
|
124
|
+
} | {
|
|
125
|
+
readonly id: string;
|
|
126
|
+
readonly type: 'distance';
|
|
127
|
+
readonly a: string;
|
|
128
|
+
readonly b: string;
|
|
129
|
+
readonly restLength: number;
|
|
130
|
+
};
|
|
131
|
+
export interface DeterministicPhysicsContactEvent3D {
|
|
132
|
+
readonly type: 'enter' | 'stay' | 'exit';
|
|
133
|
+
readonly pair: string;
|
|
134
|
+
readonly a: string;
|
|
135
|
+
readonly b: string;
|
|
136
|
+
readonly trigger: boolean;
|
|
137
|
+
readonly sensor: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface DeterministicPhysicsContactDetail3D {
|
|
140
|
+
readonly pair: string;
|
|
141
|
+
readonly a: string;
|
|
142
|
+
readonly b: string;
|
|
143
|
+
readonly trigger: boolean;
|
|
144
|
+
readonly sensor: boolean;
|
|
145
|
+
readonly point: Point3D;
|
|
146
|
+
readonly normal: Point3D;
|
|
147
|
+
readonly penetration: number;
|
|
148
|
+
}
|
|
149
|
+
export interface DeterministicPhysics3DCallbackMaskFixtureResult {
|
|
150
|
+
readonly checksum: string;
|
|
151
|
+
readonly restoredChecksum: string;
|
|
152
|
+
readonly rollbackEquivalent: boolean;
|
|
153
|
+
readonly collisionEnter: number;
|
|
154
|
+
readonly collisionStay: number;
|
|
155
|
+
readonly collisionExit: number;
|
|
156
|
+
readonly triggerEnter: number;
|
|
157
|
+
readonly triggerStay: number;
|
|
158
|
+
readonly triggerExit: number;
|
|
159
|
+
readonly disabledEvents: number;
|
|
160
|
+
readonly perEntityMaskHonored: boolean;
|
|
161
|
+
}
|
|
162
|
+
export interface DeterministicPhysics3DQueryOptionsFixtureResult {
|
|
163
|
+
readonly checksum: string;
|
|
164
|
+
readonly defaultHitAll: boolean;
|
|
165
|
+
readonly explicitSolidsOnly: boolean;
|
|
166
|
+
readonly kindFiltersStable: boolean;
|
|
167
|
+
readonly triggerSensorFiltersStable: boolean;
|
|
168
|
+
readonly raycastCovered: boolean;
|
|
169
|
+
readonly overlapCovered: boolean;
|
|
170
|
+
readonly shapeCastCovered: boolean;
|
|
171
|
+
}
|
|
172
|
+
export interface DeterministicPhysics3DMaterialFixtureResult {
|
|
173
|
+
readonly checksum: string;
|
|
174
|
+
readonly restoredChecksum: string;
|
|
175
|
+
readonly rollbackEquivalent: boolean;
|
|
176
|
+
readonly combinedFriction: number;
|
|
177
|
+
readonly combinedRestitution: number;
|
|
178
|
+
readonly normalVelocityAfterBounce: number;
|
|
179
|
+
readonly tangentVelocityAfterFrictionY: number;
|
|
180
|
+
readonly tangentVelocityAfterFrictionZ: number;
|
|
181
|
+
}
|
|
182
|
+
export interface DeterministicPhysics3DDetailFixtureResult {
|
|
183
|
+
readonly checksum: string;
|
|
184
|
+
readonly restoredChecksum: string;
|
|
185
|
+
readonly rollbackEquivalent: boolean;
|
|
186
|
+
readonly rayDetailedHits: number;
|
|
187
|
+
readonly shapeCastDetailedHits: number;
|
|
188
|
+
readonly contactDetails: number;
|
|
189
|
+
readonly stableUnderBodyOrderPermutation: boolean;
|
|
190
|
+
readonly rayNormalX: number;
|
|
191
|
+
readonly shapeCastPointX: number;
|
|
192
|
+
readonly contactPenetration: number;
|
|
193
|
+
}
|
|
194
|
+
export interface DeterministicPhysics3DStackFixtureResult {
|
|
195
|
+
readonly checksum: string;
|
|
196
|
+
readonly restoredChecksum: string;
|
|
197
|
+
readonly reversedOrderChecksum: string;
|
|
198
|
+
readonly rollbackEquivalent: boolean;
|
|
199
|
+
readonly stableUnderAuthoringOrderPermutation: boolean;
|
|
200
|
+
readonly bodies: number;
|
|
201
|
+
readonly frames: number;
|
|
202
|
+
readonly stackLayers: number;
|
|
203
|
+
readonly contactCount: number;
|
|
204
|
+
readonly solverCorrections: number;
|
|
205
|
+
readonly maxPenetration: number;
|
|
206
|
+
readonly maxHeightDrift: number;
|
|
207
|
+
readonly settledDynamicBodies: number;
|
|
208
|
+
readonly p95StepCost: number;
|
|
209
|
+
readonly p99StepCost: number;
|
|
210
|
+
}
|
|
211
|
+
export interface DeterministicPhysicsStepResult3D {
|
|
212
|
+
readonly world: DeterministicPhysicsWorld3D;
|
|
213
|
+
readonly contacts: readonly DeterministicPhysicsContactEvent3D[];
|
|
214
|
+
readonly scheduledQueryResults: readonly {
|
|
215
|
+
readonly id: string;
|
|
216
|
+
readonly hits: readonly DeterministicPhysicsHit3D[];
|
|
217
|
+
}[];
|
|
218
|
+
readonly prePhysicsScheduledQueryResults: readonly {
|
|
219
|
+
readonly id: string;
|
|
220
|
+
readonly hits: readonly DeterministicPhysicsHit3D[];
|
|
221
|
+
}[];
|
|
222
|
+
readonly postPhysicsScheduledQueryResults: readonly {
|
|
223
|
+
readonly id: string;
|
|
224
|
+
readonly hits: readonly DeterministicPhysicsHit3D[];
|
|
225
|
+
}[];
|
|
226
|
+
readonly broadphasePairs: number;
|
|
227
|
+
readonly narrowphaseContacts: number;
|
|
228
|
+
readonly solverCorrections: number;
|
|
229
|
+
readonly checksum: string;
|
|
230
|
+
}
|
|
231
|
+
export declare function createDeterministicPhysicsWorld3D(bodies: readonly DeterministicPhysicsBody3D[]): DeterministicPhysicsWorld3D;
|
|
232
|
+
export declare function stepDeterministicPhysicsWorld3D(world: DeterministicPhysicsWorld3D, options?: {
|
|
233
|
+
readonly gravityY?: number;
|
|
234
|
+
readonly scheduledQueries?: readonly DeterministicPhysicsScheduledQuery3D[];
|
|
235
|
+
readonly constraints?: readonly DeterministicPhysicsConstraint3D[];
|
|
236
|
+
readonly dtTicks?: number;
|
|
237
|
+
readonly computeChecksum?: boolean;
|
|
238
|
+
}): DeterministicPhysicsStepResult3D;
|
|
239
|
+
export declare function raycastDeterministicPhysics3D(world: DeterministicPhysicsWorld3D, query: DeterministicPhysicsRaycastQuery3D): readonly DeterministicPhysicsHit3D[];
|
|
240
|
+
export declare function raycastDeterministicPhysics3DDetailed(world: DeterministicPhysicsWorld3D, query: DeterministicPhysicsRaycastQuery3D): readonly DeterministicPhysicsDetailedHit3D[];
|
|
241
|
+
export declare function overlapDeterministicPhysics3D(world: DeterministicPhysicsWorld3D, query: DeterministicPhysicsOverlapQuery3D): readonly string[];
|
|
242
|
+
export declare function shapeCastDeterministicPhysics3D(world: DeterministicPhysicsWorld3D, query: DeterministicPhysicsShapeCastQuery3D): readonly DeterministicPhysicsHit3D[];
|
|
243
|
+
export declare function shapeCastDeterministicPhysics3DDetailed(world: DeterministicPhysicsWorld3D, query: DeterministicPhysicsShapeCastQuery3D): readonly DeterministicPhysicsDetailedHit3D[];
|
|
244
|
+
export declare function contactDetailsDeterministicPhysics3D(world: DeterministicPhysicsWorld3D): readonly DeterministicPhysicsContactDetail3D[];
|
|
245
|
+
export declare function runDeterministicPhysics3DCallbackMaskFixture(): DeterministicPhysics3DCallbackMaskFixtureResult;
|
|
246
|
+
export declare function runDeterministicPhysics3DQueryOptionsFixture(): DeterministicPhysics3DQueryOptionsFixtureResult;
|
|
247
|
+
export declare function runDeterministicPhysics3DMaterialFixture(): DeterministicPhysics3DMaterialFixtureResult;
|
|
248
|
+
export declare function runDeterministicPhysics3DDetailFixture(): DeterministicPhysics3DDetailFixtureResult;
|
|
249
|
+
export declare function runDeterministicPhysics3DStress(bodies: number, frames: number, options?: {
|
|
250
|
+
readonly allowFastStress?: boolean;
|
|
251
|
+
}): {
|
|
252
|
+
readonly checksum: string;
|
|
253
|
+
readonly bodies: number;
|
|
254
|
+
readonly frames: number;
|
|
255
|
+
readonly contactCount: number;
|
|
256
|
+
readonly queryCount: number;
|
|
257
|
+
readonly shapeCastCount: number;
|
|
258
|
+
readonly scheduledPrePhysicsQueries: number;
|
|
259
|
+
readonly scheduledPostPhysicsQueries: number;
|
|
260
|
+
readonly scheduledShapeCastQueries: number;
|
|
261
|
+
readonly scheduledQueryResultCount: number;
|
|
262
|
+
readonly scheduledQueryOrderHash: string;
|
|
263
|
+
readonly exactShapeRejects: number;
|
|
264
|
+
readonly solverCorrections: number;
|
|
265
|
+
readonly p95StepCost: number;
|
|
266
|
+
readonly p99StepCost: number;
|
|
267
|
+
readonly p95StepMs: number;
|
|
268
|
+
readonly p99StepMs: number;
|
|
269
|
+
readonly angularBodies: number;
|
|
270
|
+
readonly meshStaticColliders: number;
|
|
271
|
+
readonly exactMeshRaycasts: number;
|
|
272
|
+
readonly exactMeshOverlapRejects: number;
|
|
273
|
+
readonly angularGeometryQueries: number;
|
|
274
|
+
readonly fullPhysicsStepFrames: number;
|
|
275
|
+
readonly optimizedStressFrames: number;
|
|
276
|
+
readonly extrapolatedStress: boolean;
|
|
277
|
+
readonly rollbackEquivalent: boolean;
|
|
278
|
+
};
|
|
279
|
+
export declare function runDeterministicPhysics3DStackFixture(stackLayers?: number, frames?: number): DeterministicPhysics3DStackFixtureResult;
|
|
280
|
+
interface Point3D {
|
|
281
|
+
readonly x: number;
|
|
282
|
+
readonly y: number;
|
|
283
|
+
readonly z: number;
|
|
284
|
+
}
|
|
285
|
+
export {};
|