auto-git:
[change] src/runtime-three/runtime-scene-build.ts
This commit is contained in:
@@ -2042,6 +2042,10 @@ export function buildRuntimeSceneFromDocument(
|
|||||||
const paths = getScenePaths(document.paths)
|
const paths = getScenePaths(document.paths)
|
||||||
.filter((path) => path.enabled)
|
.filter((path) => path.enabled)
|
||||||
.map((path) => buildRuntimePath(path, enabledTerrains, document));
|
.map((path) => buildRuntimePath(path, enabledTerrains, document));
|
||||||
|
const splineCorridorColliders = deriveSplineCorridorBoxColliders({
|
||||||
|
paths,
|
||||||
|
terrains: enabledTerrains
|
||||||
|
});
|
||||||
const collections = buildRuntimeSceneCollections(
|
const collections = buildRuntimeSceneCollections(
|
||||||
document,
|
document,
|
||||||
options.runtimeClock ?? null,
|
options.runtimeClock ?? null,
|
||||||
@@ -2104,6 +2108,11 @@ export function buildRuntimeSceneFromDocument(
|
|||||||
);
|
);
|
||||||
const colliders = [...staticColliders];
|
const colliders = [...staticColliders];
|
||||||
|
|
||||||
|
for (const collider of splineCorridorColliders) {
|
||||||
|
staticColliders.push(collider);
|
||||||
|
colliders.push(collider);
|
||||||
|
}
|
||||||
|
|
||||||
for (const npc of collections.entities.npcs) {
|
for (const npc of collections.entities.npcs) {
|
||||||
const collider = buildRuntimeNpcCollider(npc);
|
const collider = buildRuntimeNpcCollider(npc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user