Refactor road definition in RuntimePath to include explicit edge settings
This commit is contained in:
@@ -62,6 +62,7 @@ import {
|
|||||||
resolveScenePath,
|
resolveScenePath,
|
||||||
type ScenePath,
|
type ScenePath,
|
||||||
type ScenePathCurveMode,
|
type ScenePathCurveMode,
|
||||||
|
type ScenePathRoadEdgeSettings,
|
||||||
type ScenePathRoadSettings,
|
type ScenePathRoadSettings,
|
||||||
type ScenePathPoint
|
type ScenePathPoint
|
||||||
} from "../document/paths";
|
} from "../document/paths";
|
||||||
@@ -504,6 +505,11 @@ export interface RuntimePathSegment {
|
|||||||
tangent: Vec3;
|
tangent: Vec3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RuntimePathRoadEdgeSettings
|
||||||
|
extends ScenePathRoadEdgeSettings {
|
||||||
|
material: MaterialDef | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RuntimePath {
|
export interface RuntimePath {
|
||||||
id: string;
|
id: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
@@ -514,8 +520,12 @@ export interface RuntimePath {
|
|||||||
sampledResolution: number;
|
sampledResolution: number;
|
||||||
glueToTerrain: boolean;
|
glueToTerrain: boolean;
|
||||||
terrainOffset: number;
|
terrainOffset: number;
|
||||||
road: ScenePathRoadSettings & {
|
road: Omit<ScenePathRoadSettings, "edges"> & {
|
||||||
material: MaterialDef | null;
|
material: MaterialDef | null;
|
||||||
|
edges: {
|
||||||
|
left: RuntimePathRoadEdgeSettings;
|
||||||
|
right: RuntimePathRoadEdgeSettings;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
points: RuntimePathPoint[];
|
points: RuntimePathPoint[];
|
||||||
segments: RuntimePathSegment[];
|
segments: RuntimePathSegment[];
|
||||||
|
|||||||
Reference in New Issue
Block a user