@luma.gl/engine 10.0.0-alpha.7 → 10.0.0-alpha.8
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/dist/compute/computation.cjs +3 -0
- package/dist/compute/computation.d.ts.map +1 -1
- package/dist/compute/computation.js +3 -0
- package/dist/compute/computation.js.map +1 -1
- package/dist/dist.dev.js +441 -222
- package/dist/dist.min.js +59 -59
- package/dist/gltf/gltf/gltf-extension-support.cjs +25 -5
- package/dist/gltf/gltf/gltf-extension-support.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-extension-support.js +27 -5
- package/dist/gltf/gltf/gltf-extension-support.js.map +1 -1
- package/dist/gltf/index.cjs.map +1 -1
- package/dist/graph/models/index.cjs.map +3 -3
- package/dist/graph/physics/index.cjs +3 -0
- package/dist/graph/physics/index.cjs.map +3 -3
- package/dist/graph/physics/index.d.ts +2 -0
- package/dist/graph/physics/index.d.ts.map +1 -1
- package/dist/graph/physics/index.js +1 -0
- package/dist/graph/physics/index.js.map +1 -1
- package/dist/graph/physics/physics-controller-geometry.cjs +203 -0
- package/dist/graph/physics/physics-controller-geometry.d.ts +6 -0
- package/dist/graph/physics/physics-controller-geometry.d.ts.map +1 -0
- package/dist/graph/physics/physics-controller-geometry.js +205 -0
- package/dist/graph/physics/physics-controller-geometry.js.map +1 -0
- package/dist/graph/physics/physics-controller.cjs +277 -0
- package/dist/graph/physics/physics-controller.d.ts +90 -0
- package/dist/graph/physics/physics-controller.d.ts.map +1 -0
- package/dist/graph/physics/physics-controller.js +266 -0
- package/dist/graph/physics/physics-controller.js.map +1 -0
- package/dist/graph/physics/scenegraph-instance.cjs +11 -2
- package/dist/graph/physics/scenegraph-instance.d.ts +3 -1
- package/dist/graph/physics/scenegraph-instance.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-instance.js +11 -0
- package/dist/graph/physics/scenegraph-instance.js.map +1 -1
- package/dist/graph/physics/scenegraph-motion.cjs +3 -3
- package/dist/graph/physics/scenegraph-motion.d.ts +5 -1
- package/dist/graph/physics/scenegraph-motion.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-motion.js +3 -3
- package/dist/graph/physics/scenegraph-motion.js.map +1 -1
- package/dist/graph/physics/scenegraph-publication.cjs +13 -3
- package/dist/graph/physics/scenegraph-publication.d.ts +4 -2
- package/dist/graph/physics/scenegraph-publication.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-publication.js +14 -3
- package/dist/graph/physics/scenegraph-publication.js.map +1 -1
- package/dist/graph/physics/scenegraph-session.cjs +11 -1
- package/dist/graph/physics/scenegraph-session.d.ts +11 -2
- package/dist/graph/physics/scenegraph-session.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-session.js +13 -1
- package/dist/graph/physics/scenegraph-session.js.map +1 -1
- package/dist/graph/tables/index.cjs.map +3 -3
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/model/batch-uniform-buffer.cjs +70 -0
- package/dist/model/batch-uniform-buffer.d.ts +21 -0
- package/dist/model/batch-uniform-buffer.d.ts.map +1 -0
- package/dist/model/batch-uniform-buffer.js +48 -0
- package/dist/model/batch-uniform-buffer.js.map +1 -0
- package/dist/model/gpu-vector-bindings.cjs +57 -16
- package/dist/model/gpu-vector-bindings.d.ts.map +1 -1
- package/dist/model/gpu-vector-bindings.js +65 -15
- package/dist/model/gpu-vector-bindings.js.map +1 -1
- package/dist/model/gpu-vector-draw-batches.cjs +4 -2
- package/dist/model/gpu-vector-draw-batches.d.ts.map +1 -1
- package/dist/model/gpu-vector-draw-batches.js +5 -2
- package/dist/model/gpu-vector-draw-batches.js.map +1 -1
- package/dist/model/gpu-vector-model-batches.d.ts +5 -0
- package/dist/model/gpu-vector-model-batches.d.ts.map +1 -1
- package/dist/model/gpu-vector-model-batches.js.map +1 -1
- package/dist/model/gpu-vector-model.cjs +41 -3
- package/dist/model/gpu-vector-model.d.ts +8 -1
- package/dist/model/gpu-vector-model.d.ts.map +1 -1
- package/dist/model/gpu-vector-model.js +44 -2
- package/dist/model/gpu-vector-model.js.map +1 -1
- package/dist/model/model.cjs +8 -0
- package/dist/model/model.d.ts +3 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +8 -0
- package/dist/model/model.js.map +1 -1
- package/dist/scenegraph/geometry-node.cjs +47 -0
- package/dist/scenegraph/geometry-node.d.ts +13 -0
- package/dist/scenegraph/geometry-node.d.ts.map +1 -0
- package/dist/scenegraph/geometry-node.js +26 -0
- package/dist/scenegraph/geometry-node.js.map +1 -0
- package/dist/scenegraph/group-node.cjs +42 -0
- package/dist/scenegraph/group-node.d.ts +8 -0
- package/dist/scenegraph/group-node.d.ts.map +1 -1
- package/dist/scenegraph/group-node.js +47 -1
- package/dist/scenegraph/group-node.js.map +1 -1
- package/dist/scenegraph/transform-source.cjs +15 -0
- package/dist/scenegraph/transform-source.d.ts +24 -0
- package/dist/scenegraph/transform-source.d.ts.map +1 -0
- package/dist/scenegraph/transform-source.js +5 -0
- package/dist/scenegraph/transform-source.js.map +1 -0
- package/dist/splats/gpu-splat-graph-renderer.d.ts +1 -1
- package/dist/splats/gpu-splat-graph-renderer.d.ts.map +1 -1
- package/dist/splats/index.cjs.map +1 -1
- package/dist/splats/splat-renderer.cjs +6 -1
- package/dist/splats/splat-renderer.d.ts +3 -0
- package/dist/splats/splat-renderer.d.ts.map +1 -1
- package/dist/splats/splat-renderer.js +6 -1
- package/dist/splats/splat-renderer.js.map +1 -1
- package/dist/splats/splat-sort.d.ts +1 -1
- package/dist/splats/splat-sort.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/compute/computation.ts +3 -0
- package/src/gltf/gltf/gltf-extension-support.ts +27 -5
- package/src/graph/physics/index.ts +10 -0
- package/src/graph/physics/physics-controller-geometry.ts +264 -0
- package/src/graph/physics/physics-controller.ts +348 -0
- package/src/graph/physics/scenegraph-instance.ts +12 -1
- package/src/graph/physics/scenegraph-motion.ts +14 -3
- package/src/graph/physics/scenegraph-publication.ts +24 -4
- package/src/graph/physics/scenegraph-session.ts +35 -3
- package/src/index.ts +6 -0
- package/src/model/batch-uniform-buffer.ts +51 -0
- package/src/model/gpu-vector-bindings.ts +77 -19
- package/src/model/gpu-vector-draw-batches.ts +5 -2
- package/src/model/gpu-vector-model-batches.ts +5 -0
- package/src/model/gpu-vector-model.ts +47 -2
- package/src/model/model.ts +10 -0
- package/src/scenegraph/geometry-node.ts +31 -0
- package/src/scenegraph/group-node.ts +54 -1
- package/src/scenegraph/transform-source.ts +30 -0
- package/src/splats/gpu-splat-graph-renderer.ts +1 -1
- package/src/splats/splat-renderer.ts +9 -1
- package/src/splats/splat-sort.ts +1 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import { assert } from '@luma.gl/core';
|
|
5
|
+
import { Geometry } from '@math.gl/geometry';
|
|
6
|
+
import { Matrix4 } from '@math.gl/core';
|
|
7
|
+
import { CubeGeometry, GroupNode, IcoSphereGeometry, ModelNode, GeometryNode, SphereGeometry, decomposePhysicsTransform, JointController } from "../../index.js";
|
|
8
|
+
import { makeConvexHullGeometry, makeTriangleMeshGeometry, scaleRigidBodyShape } from '@luma.gl/graph/gpu-physics';
|
|
9
|
+
import { PhysicsGeometryNode } from "./physics-scenegraph.js";
|
|
10
|
+
import { makeRigidBodyJointsFromScenegraph } from "./scenegraph-joints.js";
|
|
11
|
+
/** Cook CPU-authored geometry once; live body poses remain independent GPU state. */
|
|
12
|
+
export function makePhysicsControllerScene(scene, definitions, worldOptions, joints = []) {
|
|
13
|
+
const matrices = new Map();
|
|
14
|
+
const pending = [{ node: scene, parent: new Matrix4() }];
|
|
15
|
+
while (pending.length) {
|
|
16
|
+
const { node, parent } = pending.pop();
|
|
17
|
+
// Physics authoring requires a tree, including hidden nodes.
|
|
18
|
+
assert(!matrices.has(node));
|
|
19
|
+
const matrix = new Matrix4(parent).multiplyRight(node.matrix);
|
|
20
|
+
matrices.set(node, matrix);
|
|
21
|
+
if (node instanceof GroupNode) {
|
|
22
|
+
for (let index = node.children.length - 1; index >= 0; index--)
|
|
23
|
+
pending.push({ node: node.children[index], parent: matrix });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const bodies = [];
|
|
27
|
+
const bindings = new Map();
|
|
28
|
+
const geometries = new Map();
|
|
29
|
+
const localBounds = new Map();
|
|
30
|
+
for (const node of matrices.keys()) {
|
|
31
|
+
const source = definitions.get(node)?.geometry ??
|
|
32
|
+
(node instanceof PhysicsGeometryNode || node instanceof GeometryNode
|
|
33
|
+
? node.geometry
|
|
34
|
+
: node instanceof ModelNode
|
|
35
|
+
? node.model.sourceGeometry
|
|
36
|
+
: null);
|
|
37
|
+
if (!(source instanceof Geometry))
|
|
38
|
+
continue;
|
|
39
|
+
const placements = node instanceof ModelNode && node.instanceMatrices
|
|
40
|
+
? node.instanceMatrices.map(matrix => new Matrix4(matrix))
|
|
41
|
+
: [new Matrix4()];
|
|
42
|
+
geometries.set(node, { geometry: source, placements });
|
|
43
|
+
const positions = source.attributes['POSITION'];
|
|
44
|
+
if (!positions || positions.size !== 3)
|
|
45
|
+
continue;
|
|
46
|
+
const minimum = [Infinity, Infinity, Infinity];
|
|
47
|
+
const maximum = [-Infinity, -Infinity, -Infinity];
|
|
48
|
+
for (const placement of placements)
|
|
49
|
+
for (let index = 0; index < positions.value.length; index += 3) {
|
|
50
|
+
const point = placement.transformAsPoint([
|
|
51
|
+
positions.value[index],
|
|
52
|
+
positions.value[index + 1],
|
|
53
|
+
positions.value[index + 2]
|
|
54
|
+
]);
|
|
55
|
+
for (let axis = 0; axis < 3; axis++) {
|
|
56
|
+
minimum[axis] = Math.min(minimum[axis], point[axis]);
|
|
57
|
+
maximum[axis] = Math.max(maximum[axis], point[axis]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (placements.length)
|
|
61
|
+
localBounds.set(node, [minimum, maximum]);
|
|
62
|
+
}
|
|
63
|
+
for (const [node, options] of definitions) {
|
|
64
|
+
const matrix = matrices.get(node);
|
|
65
|
+
if (!matrix)
|
|
66
|
+
throw new Error(`Physics node is outside the scene: ${node.id}`);
|
|
67
|
+
const { position, rotation, scale } = decomposePhysicsTransform(matrix);
|
|
68
|
+
const inverse = new Matrix4()
|
|
69
|
+
.translate(position)
|
|
70
|
+
.multiplyRight(new Matrix4().fromQuaternion(rotation))
|
|
71
|
+
.invert();
|
|
72
|
+
const colliders = [];
|
|
73
|
+
if (options.collider && options.collider !== 'geometry') {
|
|
74
|
+
const shape = options.collider;
|
|
75
|
+
if (shape.type === 'convex-hull' || shape.type === 'triangle-mesh') {
|
|
76
|
+
const positions = shape.geometry.positions.map((value, index) => value * scale[index % 3]);
|
|
77
|
+
const indices = [...shape.geometry.indices];
|
|
78
|
+
if (scale[0] * scale[1] * scale[2] < 0)
|
|
79
|
+
for (let index = 0; index < indices.length; index += 3)
|
|
80
|
+
[indices[index + 1], indices[index + 2]] = [indices[index + 2], indices[index + 1]];
|
|
81
|
+
colliders.push({
|
|
82
|
+
shape: shape.type === 'convex-hull'
|
|
83
|
+
? { type: 'convex-hull', geometry: makeConvexHullGeometry(positions) }
|
|
84
|
+
: { type: 'triangle-mesh', geometry: makeTriangleMeshGeometry(positions, indices) }
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else
|
|
88
|
+
colliders.push({ shape: scaleRigidBodyShape(shape, scale.map(Math.abs)) });
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const descendants = [node];
|
|
92
|
+
while (descendants.length) {
|
|
93
|
+
const descendant = descendants.pop();
|
|
94
|
+
if (descendant !== node && definitions.has(descendant))
|
|
95
|
+
continue;
|
|
96
|
+
const source = geometries.get(descendant);
|
|
97
|
+
if (!source && descendant instanceof ModelNode)
|
|
98
|
+
throw new Error(`Missing CPU collision geometry for model node ${descendant.id}; supply an explicit collider`);
|
|
99
|
+
if (source) {
|
|
100
|
+
for (const placement of source.placements)
|
|
101
|
+
colliders.push(makeGeometryCollider(source.geometry, new Matrix4(inverse)
|
|
102
|
+
.multiplyRight(matrices.get(descendant))
|
|
103
|
+
.multiplyRight(placement), options.geometryMode, options.motion === 'static'));
|
|
104
|
+
}
|
|
105
|
+
if (descendant instanceof GroupNode) {
|
|
106
|
+
for (let index = descendant.children.length - 1; index >= 0; index--)
|
|
107
|
+
descendants.push(descendant.children[index]);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (!colliders.length)
|
|
112
|
+
throw new Error(`No CPU collision geometry for physics node: ${node.id}`);
|
|
113
|
+
const { motion = 'dynamic', collider, geometry, geometryMode, ...properties } = options;
|
|
114
|
+
bindings.set(node, bodies.length);
|
|
115
|
+
bodies.push({
|
|
116
|
+
colliders,
|
|
117
|
+
position,
|
|
118
|
+
orientation: rotation,
|
|
119
|
+
mode: motion,
|
|
120
|
+
mass: motion === 'static' ? 0 : 1,
|
|
121
|
+
...properties
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
if (!bodies.length)
|
|
125
|
+
throw new Error('Physics scene has no bodies');
|
|
126
|
+
const resolved = new JointController(joints).resolve([scene], new Set(bindings.keys()));
|
|
127
|
+
let fixedWorldBody;
|
|
128
|
+
if (resolved.some(joint => !joint.first.body || !joint.second.body)) {
|
|
129
|
+
fixedWorldBody = bodies.length;
|
|
130
|
+
bodies.push({ mode: 'static', mass: 0, position: [0, 0, 0], colliders: [] });
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
roots: [scene],
|
|
134
|
+
localBounds,
|
|
135
|
+
definition: {
|
|
136
|
+
bodies: bindings,
|
|
137
|
+
world: {
|
|
138
|
+
...worldOptions,
|
|
139
|
+
bodies,
|
|
140
|
+
joints: resolved.flatMap(joint => makeRigidBodyJointsFromScenegraph(joint, bindings, fixedWorldBody))
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function makeGeometryCollider(geometry, matrix, mode, staticBody = false) {
|
|
146
|
+
const positions = geometry.attributes['POSITION'];
|
|
147
|
+
if (geometry.topology !== 'triangle-list' || !positions || positions.size !== 3)
|
|
148
|
+
throw new Error('Physics cooking requires triangle-list POSITION geometry');
|
|
149
|
+
const minimum = [Infinity, Infinity, Infinity];
|
|
150
|
+
const maximum = [-Infinity, -Infinity, -Infinity];
|
|
151
|
+
let radius = 0;
|
|
152
|
+
for (let index = 0; index < positions.value.length; index += 3) {
|
|
153
|
+
radius = Math.max(radius, Math.hypot(positions.value[index], positions.value[index + 1], positions.value[index + 2]));
|
|
154
|
+
for (let axis = 0; axis < 3; axis++) {
|
|
155
|
+
minimum[axis] = Math.min(minimum[axis], positions.value[index + axis]);
|
|
156
|
+
maximum[axis] = Math.max(maximum[axis], positions.value[index + axis]);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
let shape;
|
|
160
|
+
// A flat static surface has no volumetric hull; retain its authored triangles instead.
|
|
161
|
+
if (!mode && staticBody && maximum.some((value, axis) => value === minimum[axis]))
|
|
162
|
+
mode = 'triangle-mesh';
|
|
163
|
+
const transform = decomposePhysicsTransform(matrix);
|
|
164
|
+
const scale = transform.scale.map(Math.abs);
|
|
165
|
+
const isBox = geometry instanceof CubeGeometry &&
|
|
166
|
+
Array.from(positions.value).every((value, index) => Math.min(Math.abs(value - minimum[index % 3]), Math.abs(value - maximum[index % 3])) < 1e-6);
|
|
167
|
+
const isSphere = (geometry instanceof SphereGeometry || geometry instanceof IcoSphereGeometry) &&
|
|
168
|
+
scale.every(value => Math.abs(value - scale[0]) < 1e-6) &&
|
|
169
|
+
Array.from({ length: positions.value.length / 3 }, (_, index) => Math.hypot(positions.value[index * 3], positions.value[index * 3 + 1], positions.value[index * 3 + 2])).every(value => Math.abs(value - radius) < 1e-6 * Math.max(1, radius));
|
|
170
|
+
if (!mode && isBox) {
|
|
171
|
+
const halfExtents = maximum.map((value, axis) => ((value - minimum[axis]) * scale[axis]) / 2);
|
|
172
|
+
const center = matrix.transformAsPoint(minimum.map((value, axis) => (value + maximum[axis]) / 2));
|
|
173
|
+
return {
|
|
174
|
+
shape: { type: 'box', halfExtents: [halfExtents[0], halfExtents[1], halfExtents[2]] },
|
|
175
|
+
position: [center[0], center[1], center[2]],
|
|
176
|
+
orientation: transform.rotation
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
if (!mode && isSphere)
|
|
180
|
+
return {
|
|
181
|
+
shape: { type: 'sphere', radius: radius * scale[0] },
|
|
182
|
+
position: transform.position,
|
|
183
|
+
orientation: transform.rotation
|
|
184
|
+
};
|
|
185
|
+
const vertices = [];
|
|
186
|
+
for (let index = 0; index < positions.value.length; index += 3)
|
|
187
|
+
vertices.push(...matrix.transformAsPoint([
|
|
188
|
+
positions.value[index],
|
|
189
|
+
positions.value[index + 1],
|
|
190
|
+
positions.value[index + 2]
|
|
191
|
+
]));
|
|
192
|
+
if (mode === 'triangle-mesh') {
|
|
193
|
+
const indices = geometry.indices
|
|
194
|
+
? Array.from(geometry.indices.value)
|
|
195
|
+
: Array.from({ length: vertices.length / 3 }, (_, index) => index);
|
|
196
|
+
if (matrix.determinant() < 0)
|
|
197
|
+
for (let index = 0; index < indices.length; index += 3)
|
|
198
|
+
[indices[index + 1], indices[index + 2]] = [indices[index + 2], indices[index + 1]];
|
|
199
|
+
shape = { type: 'triangle-mesh', geometry: makeTriangleMeshGeometry(vertices, indices) };
|
|
200
|
+
}
|
|
201
|
+
else
|
|
202
|
+
shape = { type: 'convex-hull', geometry: makeConvexHullGeometry(vertices) };
|
|
203
|
+
return { shape };
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=physics-controller-geometry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"physics-controller-geometry.js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CAAC;IACJ,IAAI,IAAI,KAAK,eAAe,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO;YAC9B,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;YACpC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;QACnE,IAAI,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC;YAC1B,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC;gBACpD,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;QACxF,KAAK,GAAG,EAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,wBAAwB,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAC,CAAC;IACzF,CAAC;;QAAM,KAAK,GAAG,EAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,CAAC,EAAC,CAAC;IACjF,OAAO,EAAC,KAAK,EAAC,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var physics_controller_exports = {};
|
|
19
|
+
__export(physics_controller_exports, {
|
|
20
|
+
PhysicsController: () => PhysicsController
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(physics_controller_exports);
|
|
23
|
+
var import_core = require("@luma.gl/core");
|
|
24
|
+
var import_gpu_physics = require("@luma.gl/graph/gpu-physics");
|
|
25
|
+
var import_scenegraph_session = require("./scenegraph-session.cjs");
|
|
26
|
+
var import_physics_controller_geometry = require("./physics-controller-geometry.cjs");
|
|
27
|
+
class PhysicsController {
|
|
28
|
+
device;
|
|
29
|
+
scene;
|
|
30
|
+
timeStep;
|
|
31
|
+
maximumSubsteps;
|
|
32
|
+
worldOptions;
|
|
33
|
+
definitions = /* @__PURE__ */ new Map();
|
|
34
|
+
handles = /* @__PURE__ */ new Map();
|
|
35
|
+
manualTargets = /* @__PURE__ */ new Set();
|
|
36
|
+
joints = [];
|
|
37
|
+
indices = /* @__PURE__ */ new Map();
|
|
38
|
+
session;
|
|
39
|
+
pending;
|
|
40
|
+
closed = false;
|
|
41
|
+
destruction;
|
|
42
|
+
dirty = true;
|
|
43
|
+
accumulator = 0;
|
|
44
|
+
/** Stable proxy: renderers fetch current borrowed buffers after reset/rebuild. */
|
|
45
|
+
transformSource = {
|
|
46
|
+
getFrame: () => {
|
|
47
|
+
if (this.closed || this.dirty || this.pending || !this.session)
|
|
48
|
+
return null;
|
|
49
|
+
const publication = this.session.publication;
|
|
50
|
+
return {
|
|
51
|
+
matrices: publication.matrices,
|
|
52
|
+
matrixCount: this.session.world.count,
|
|
53
|
+
revision: this.session.revision,
|
|
54
|
+
bindings: publication.transformBindings
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
constructor(device, props) {
|
|
59
|
+
this.device = device;
|
|
60
|
+
const { scene, maximumSubsteps = 4, ...worldOptions } = props;
|
|
61
|
+
this.scene = scene;
|
|
62
|
+
this.timeStep = props.timeStep ?? 1 / 120;
|
|
63
|
+
this.maximumSubsteps = maximumSubsteps;
|
|
64
|
+
this.worldOptions = structuredClone({ ...worldOptions, timeStep: this.timeStep });
|
|
65
|
+
if (!Number.isFinite(this.timeStep) || this.timeStep <= 0 || !Number.isSafeInteger(maximumSubsteps) || maximumSubsteps <= 0)
|
|
66
|
+
throw new Error("Invalid physics timestep or substep limit");
|
|
67
|
+
}
|
|
68
|
+
/** Borrowed rendering publication. Fetch again after prepare/reset changes the revision. */
|
|
69
|
+
get publication() {
|
|
70
|
+
return this.requireReady().publication;
|
|
71
|
+
}
|
|
72
|
+
get revision() {
|
|
73
|
+
var _a;
|
|
74
|
+
return ((_a = this.session) == null ? void 0 : _a.revision) ?? 0;
|
|
75
|
+
}
|
|
76
|
+
addBody(reference, options = {}) {
|
|
77
|
+
this.assertEditable();
|
|
78
|
+
const node = this.resolveNode(reference);
|
|
79
|
+
if (!node)
|
|
80
|
+
throw new Error(`Physics node not found: ${reference}`);
|
|
81
|
+
if (this.definitions.has(node))
|
|
82
|
+
throw new Error(`Physics body already attached: ${node.id}`);
|
|
83
|
+
const { geometry, ...properties } = options;
|
|
84
|
+
this.definitions.set(node, { ...structuredClone(properties), geometry });
|
|
85
|
+
const binding = () => {
|
|
86
|
+
const session = this.requireReady();
|
|
87
|
+
const index = this.indices.get(node);
|
|
88
|
+
if (index === void 0 || this.handles.get(node) !== handle)
|
|
89
|
+
throw new Error(`Physics body is no longer attached: ${node.id}`);
|
|
90
|
+
return { session, world: session.world, index };
|
|
91
|
+
};
|
|
92
|
+
const handle = {
|
|
93
|
+
node,
|
|
94
|
+
applyImpulse: (impulse, { point } = {}) => {
|
|
95
|
+
const { world, index } = binding();
|
|
96
|
+
world.applyImpulse(index, impulse, point);
|
|
97
|
+
},
|
|
98
|
+
setKinematicTarget: (pose) => {
|
|
99
|
+
var _a;
|
|
100
|
+
const { world, index } = binding();
|
|
101
|
+
if (((_a = this.definitions.get(node)) == null ? void 0 : _a.motion) !== "kinematic")
|
|
102
|
+
throw new Error("Explicit targets require a kinematic body");
|
|
103
|
+
world.setKinematicTarget(index, pose.position, pose.rotation);
|
|
104
|
+
this.manualTargets.add(node);
|
|
105
|
+
},
|
|
106
|
+
followScenegraph: () => {
|
|
107
|
+
binding();
|
|
108
|
+
this.manualTargets.delete(node);
|
|
109
|
+
},
|
|
110
|
+
readPose: () => {
|
|
111
|
+
const { session, index } = binding();
|
|
112
|
+
return this.exclusive(() => session.withWorld(async (world) => {
|
|
113
|
+
const state = (await world.readState())[index];
|
|
114
|
+
const center = world.getBodyParameters(index).centerOfMass ?? [0, 0, 0];
|
|
115
|
+
const offset = (0, import_gpu_physics.rotateRigidBodyVector)(state.orientation, center);
|
|
116
|
+
return {
|
|
117
|
+
position: [
|
|
118
|
+
state.position[0] - offset[0],
|
|
119
|
+
state.position[1] - offset[1],
|
|
120
|
+
state.position[2] - offset[2]
|
|
121
|
+
],
|
|
122
|
+
rotation: state.orientation
|
|
123
|
+
};
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
this.handles.set(node, handle);
|
|
128
|
+
this.dirty = true;
|
|
129
|
+
return handle;
|
|
130
|
+
}
|
|
131
|
+
getBody(reference) {
|
|
132
|
+
if (this.closed)
|
|
133
|
+
return void 0;
|
|
134
|
+
const node = this.resolveNode(reference);
|
|
135
|
+
return node ? this.handles.get(node) : void 0;
|
|
136
|
+
}
|
|
137
|
+
removeBody(reference) {
|
|
138
|
+
this.assertEditable();
|
|
139
|
+
const node = this.resolveNode(reference);
|
|
140
|
+
if (!node || !this.definitions.delete(node))
|
|
141
|
+
return false;
|
|
142
|
+
this.handles.delete(node);
|
|
143
|
+
this.manualTargets.delete(node);
|
|
144
|
+
this.dirty = true;
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
addJoint(options) {
|
|
148
|
+
this.assertEditable();
|
|
149
|
+
const { first, second, ...properties } = options;
|
|
150
|
+
const firstNode = this.resolveNode(first), secondNode = this.resolveNode(second);
|
|
151
|
+
if (!firstNode || !secondNode)
|
|
152
|
+
throw new Error("Physics joint attachment not found");
|
|
153
|
+
const joint = { ...structuredClone(properties), first: firstNode, second: secondNode };
|
|
154
|
+
this.joints.push(joint);
|
|
155
|
+
this.dirty = true;
|
|
156
|
+
return joint;
|
|
157
|
+
}
|
|
158
|
+
removeJoint(joint) {
|
|
159
|
+
this.assertEditable();
|
|
160
|
+
const index = this.joints.indexOf(joint);
|
|
161
|
+
if (index < 0)
|
|
162
|
+
return false;
|
|
163
|
+
this.joints.splice(index, 1);
|
|
164
|
+
this.dirty = true;
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
/** Compile once, or explicitly rebuild after body, geometry, scale or topology edits. */
|
|
168
|
+
prepare({ preserveState = true } = {}) {
|
|
169
|
+
return this.exclusive(async () => {
|
|
170
|
+
(0, import_core.assert)(!this.closed);
|
|
171
|
+
if (this.scene.transformSource && this.scene.transformSource !== this.transformSource)
|
|
172
|
+
throw new Error("Scene already has a transform source");
|
|
173
|
+
this.scene.transformSource = this.transformSource;
|
|
174
|
+
try {
|
|
175
|
+
this.dirty = true;
|
|
176
|
+
const scene = (0, import_physics_controller_geometry.makePhysicsControllerScene)(this.scene, this.definitions, this.worldOptions, this.joints);
|
|
177
|
+
if (this.session)
|
|
178
|
+
await this.session.rebuild(async () => scene, preserveState);
|
|
179
|
+
else
|
|
180
|
+
this.session = await import_scenegraph_session.ScenegraphPhysicsSession.create(this.device, scene);
|
|
181
|
+
this.indices = scene.definition.bodies;
|
|
182
|
+
this.manualTargets.clear();
|
|
183
|
+
this.accumulator = 0;
|
|
184
|
+
this.dirty = false;
|
|
185
|
+
} catch (error) {
|
|
186
|
+
if (!this.session && this.scene.transformSource === this.transformSource)
|
|
187
|
+
this.scene.transformSource = null;
|
|
188
|
+
throw error;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/** Synchronously submit bounded fixed steps; rendering can follow on the same GPU queue. */
|
|
193
|
+
update(deltaTime, { animatedNodes = /* @__PURE__ */ new Set() } = {}) {
|
|
194
|
+
const session = this.requireReady();
|
|
195
|
+
if (!Number.isFinite(deltaTime) || deltaTime < 0)
|
|
196
|
+
throw new Error("Invalid physics frame time");
|
|
197
|
+
const available = this.accumulator + deltaTime;
|
|
198
|
+
const maximumTime = this.timeStep * this.maximumSubsteps;
|
|
199
|
+
this.accumulator = Math.min(available, maximumTime);
|
|
200
|
+
const steps = Math.min(this.maximumSubsteps, Math.floor((this.accumulator + this.timeStep * 1e-9) / this.timeStep));
|
|
201
|
+
if (steps) {
|
|
202
|
+
const targetNodes = /* @__PURE__ */ new Set();
|
|
203
|
+
for (const [node, options] of this.definitions)
|
|
204
|
+
if (options.motion === "kinematic" && !this.manualTargets.has(node))
|
|
205
|
+
targetNodes.add(node);
|
|
206
|
+
const encoder = this.device.createCommandEncoder();
|
|
207
|
+
session.encode(encoder, {
|
|
208
|
+
steps,
|
|
209
|
+
animatedNodes,
|
|
210
|
+
targetNodes,
|
|
211
|
+
excludedNodes: this.manualTargets
|
|
212
|
+
});
|
|
213
|
+
this.device.submit(encoder.finish());
|
|
214
|
+
this.accumulator = Math.max(0, this.accumulator - steps * this.timeStep);
|
|
215
|
+
}
|
|
216
|
+
return {
|
|
217
|
+
steps,
|
|
218
|
+
simulatedTime: steps * this.timeStep,
|
|
219
|
+
droppedTime: Math.max(0, available - maximumTime)
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
/** Restore authored bodies and node transforms without changing application cameras. */
|
|
223
|
+
reset() {
|
|
224
|
+
this.requireReady();
|
|
225
|
+
return this.exclusive(async () => {
|
|
226
|
+
await this.session.reset();
|
|
227
|
+
this.accumulator = 0;
|
|
228
|
+
this.manualTargets.clear();
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
destroy() {
|
|
232
|
+
if (this.destruction)
|
|
233
|
+
return this.destruction;
|
|
234
|
+
this.closed = true;
|
|
235
|
+
if (this.scene.transformSource === this.transformSource)
|
|
236
|
+
this.scene.transformSource = null;
|
|
237
|
+
this.destruction = (async () => {
|
|
238
|
+
var _a;
|
|
239
|
+
try {
|
|
240
|
+
await this.pending;
|
|
241
|
+
} catch {
|
|
242
|
+
}
|
|
243
|
+
await ((_a = this.session) == null ? void 0 : _a.destroy());
|
|
244
|
+
this.session = void 0;
|
|
245
|
+
this.handles.clear();
|
|
246
|
+
this.definitions.clear();
|
|
247
|
+
this.manualTargets.clear();
|
|
248
|
+
this.joints.length = 0;
|
|
249
|
+
this.indices = /* @__PURE__ */ new Map();
|
|
250
|
+
})();
|
|
251
|
+
return this.destruction;
|
|
252
|
+
}
|
|
253
|
+
resolveNode(reference) {
|
|
254
|
+
return typeof reference === "string" ? this.scene.findNode(reference) : reference;
|
|
255
|
+
}
|
|
256
|
+
assertEditable() {
|
|
257
|
+
(0, import_core.assert)(!this.pending && !this.closed);
|
|
258
|
+
}
|
|
259
|
+
requireReady() {
|
|
260
|
+
(0, import_core.assert)(this.session && !this.dirty && !this.pending && !this.closed);
|
|
261
|
+
return this.session;
|
|
262
|
+
}
|
|
263
|
+
async exclusive(operation) {
|
|
264
|
+
this.assertEditable();
|
|
265
|
+
const pending = Promise.resolve().then(operation);
|
|
266
|
+
this.pending = pending;
|
|
267
|
+
try {
|
|
268
|
+
return await pending;
|
|
269
|
+
} finally {
|
|
270
|
+
this.pending = void 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
275
|
+
0 && (module.exports = {
|
|
276
|
+
PhysicsController
|
|
277
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type Device } from '@luma.gl/core';
|
|
2
|
+
import type { Geometry } from '@math.gl/geometry';
|
|
3
|
+
import type { GPURigidBody, GPURigidBodyShape, GPURigidBodyWorldProps } from '@luma.gl/graph/gpu-physics';
|
|
4
|
+
import { GroupNode, type ScenegraphNode, type ScenegraphJoint, type ScenegraphTransformSource } from "../../index.js";
|
|
5
|
+
export type PhysicsNodeReference = ScenegraphNode | string;
|
|
6
|
+
export type PhysicsJointOptions = Omit<ScenegraphJoint, 'first' | 'second'> & {
|
|
7
|
+
first: PhysicsNodeReference;
|
|
8
|
+
second: PhysicsNodeReference;
|
|
9
|
+
};
|
|
10
|
+
export type PhysicsBodyOptions = Pick<GPURigidBody, 'mass' | 'restitution' | 'friction' | 'velocity' | 'angularVelocity' | 'centerOfMass' | 'inertiaDiagonal' | 'inertiaOrientation' | 'gravityFactor'> & {
|
|
11
|
+
motion?: 'static' | 'dynamic' | 'kinematic';
|
|
12
|
+
/** Infer CPU scene geometry by default, or supply an explicit node-local shape. */
|
|
13
|
+
collider?: 'geometry' | GPURigidBodyShape;
|
|
14
|
+
/** Optional CPU geometry for a node without retained model geometry. */
|
|
15
|
+
geometry?: Geometry;
|
|
16
|
+
/** Non-primitives default to a convex hull; concave surfaces must be explicit. */
|
|
17
|
+
geometryMode?: 'convex-hull' | 'triangle-mesh';
|
|
18
|
+
};
|
|
19
|
+
export type PhysicsControllerProps = Omit<GPURigidBodyWorldProps, 'bodies' | 'publicationBounds' | 'publishPoses' | 'joints'> & {
|
|
20
|
+
scene: GroupNode;
|
|
21
|
+
/** Bound catch-up work; excess elapsed time is reported, not silently simulated. */
|
|
22
|
+
maximumSubsteps?: number;
|
|
23
|
+
};
|
|
24
|
+
export type PhysicsBodyPose = {
|
|
25
|
+
/** World-space scene-node origin, rather than the internal center of mass. */
|
|
26
|
+
position: readonly [number, number, number];
|
|
27
|
+
rotation: readonly [number, number, number, number];
|
|
28
|
+
};
|
|
29
|
+
export type PhysicsBody = {
|
|
30
|
+
readonly node: ScenegraphNode;
|
|
31
|
+
applyImpulse(impulse: readonly [number, number, number], options?: {
|
|
32
|
+
point?: readonly [number, number, number];
|
|
33
|
+
}): void;
|
|
34
|
+
setKinematicTarget(pose: PhysicsBodyPose): void;
|
|
35
|
+
/** Resume taking a kinematic target from the node's authored world transform. */
|
|
36
|
+
followScenegraph(): void;
|
|
37
|
+
/** Explicit asynchronous inspection; never called by frame updates. */
|
|
38
|
+
readPose(): Promise<PhysicsBodyPose>;
|
|
39
|
+
};
|
|
40
|
+
export type PhysicsUpdateResult = {
|
|
41
|
+
steps: number;
|
|
42
|
+
simulatedTime: number;
|
|
43
|
+
droppedTime: number;
|
|
44
|
+
};
|
|
45
|
+
/** Application-facing scene physics, with setup-time path resolution and GPU-only frame updates. */
|
|
46
|
+
export declare class PhysicsController {
|
|
47
|
+
private readonly device;
|
|
48
|
+
readonly scene: GroupNode;
|
|
49
|
+
readonly timeStep: number;
|
|
50
|
+
private readonly maximumSubsteps;
|
|
51
|
+
private readonly worldOptions;
|
|
52
|
+
private readonly definitions;
|
|
53
|
+
private readonly handles;
|
|
54
|
+
private readonly manualTargets;
|
|
55
|
+
private readonly joints;
|
|
56
|
+
private indices;
|
|
57
|
+
private session?;
|
|
58
|
+
private pending?;
|
|
59
|
+
private closed;
|
|
60
|
+
private destruction?;
|
|
61
|
+
private dirty;
|
|
62
|
+
private accumulator;
|
|
63
|
+
/** Stable proxy: renderers fetch current borrowed buffers after reset/rebuild. */
|
|
64
|
+
readonly transformSource: ScenegraphTransformSource;
|
|
65
|
+
constructor(device: Device, props: PhysicsControllerProps);
|
|
66
|
+
/** Borrowed rendering publication. Fetch again after prepare/reset changes the revision. */
|
|
67
|
+
get publication(): import("./scenegraph-publication").ScenegraphPhysicsPublication;
|
|
68
|
+
get revision(): number;
|
|
69
|
+
addBody(reference: PhysicsNodeReference, options?: PhysicsBodyOptions): PhysicsBody;
|
|
70
|
+
getBody(reference: PhysicsNodeReference): PhysicsBody | undefined;
|
|
71
|
+
removeBody(reference: PhysicsNodeReference): boolean;
|
|
72
|
+
addJoint(options: PhysicsJointOptions): ScenegraphJoint;
|
|
73
|
+
removeJoint(joint: ScenegraphJoint): boolean;
|
|
74
|
+
/** Compile once, or explicitly rebuild after body, geometry, scale or topology edits. */
|
|
75
|
+
prepare({ preserveState }?: {
|
|
76
|
+
preserveState?: boolean;
|
|
77
|
+
}): Promise<void>;
|
|
78
|
+
/** Synchronously submit bounded fixed steps; rendering can follow on the same GPU queue. */
|
|
79
|
+
update(deltaTime: number, { animatedNodes }?: {
|
|
80
|
+
animatedNodes?: ReadonlySet<ScenegraphNode>;
|
|
81
|
+
}): PhysicsUpdateResult;
|
|
82
|
+
/** Restore authored bodies and node transforms without changing application cameras. */
|
|
83
|
+
reset(): Promise<void>;
|
|
84
|
+
destroy(): Promise<void>;
|
|
85
|
+
private resolveNode;
|
|
86
|
+
private assertEditable;
|
|
87
|
+
private requireReady;
|
|
88
|
+
private exclusive;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=physics-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"physics-controller.d.ts","sourceRoot":"","sources":["../../../src/graph/physics/physics-controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAS,KAAK,MAAM,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC/B,uBAAoB;AAIrB,MAAM,MAAM,oBAAoB,GAAG,cAA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