Feat: Add terrain gluing and offset support to path scheduling

This commit is contained in:
2026-05-12 23:37:07 +02:00
parent d9ee9073dc
commit 63fa55220c
3 changed files with 14 additions and 2 deletions

View File

@@ -72,6 +72,8 @@ export interface RuntimeProjectSchedulePathDefinition {
loop: boolean;
curveMode?: ScenePathCurveMode;
sampledResolution?: number;
glueToTerrain?: boolean;
terrainOffset?: number;
points: RuntimeProjectSchedulePathPoint[];
segments: RuntimeProjectSchedulePathSegment[];
totalLength: number;

View File

@@ -1998,7 +1998,7 @@ export function buildRuntimeSceneFromDocument(
const modelInstances = enabledModelInstances.map(buildRuntimeModelInstance);
const paths = getScenePaths(document.paths)
.filter((path) => path.enabled)
.map(buildRuntimePath);
.map((path) => buildRuntimePath(path, enabledTerrains));
const collections = buildRuntimeSceneCollections(
document,
options.runtimeClock ?? null,