Feat: Add terrain gluing and offset support to path scheduling
This commit is contained in:
@@ -72,6 +72,8 @@ export interface RuntimeProjectSchedulePathDefinition {
|
||||
loop: boolean;
|
||||
curveMode?: ScenePathCurveMode;
|
||||
sampledResolution?: number;
|
||||
glueToTerrain?: boolean;
|
||||
terrainOffset?: number;
|
||||
points: RuntimeProjectSchedulePathPoint[];
|
||||
segments: RuntimeProjectSchedulePathSegment[];
|
||||
totalLength: number;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user