Add smoothPath option to FollowActorPathControlEffect and related interfaces
This commit is contained in:
@@ -115,6 +115,7 @@ export interface FollowActorPathControlEffect {
|
|||||||
pathId: string;
|
pathId: string;
|
||||||
speed: number;
|
speed: number;
|
||||||
loop: boolean;
|
loop: boolean;
|
||||||
|
smoothPath: boolean;
|
||||||
progressMode: ActorPathProgressMode;
|
progressMode: ActorPathProgressMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,6 +314,7 @@ export interface RuntimeResolvedActorPathAssignmentState {
|
|||||||
pathId: string | null;
|
pathId: string | null;
|
||||||
speed: number | null;
|
speed: number | null;
|
||||||
loop: boolean;
|
loop: boolean;
|
||||||
|
smoothPath: boolean;
|
||||||
progressMode: ActorPathProgressMode | null;
|
progressMode: ActorPathProgressMode | null;
|
||||||
source: RuntimeResolvedControlSource;
|
source: RuntimeResolvedControlSource;
|
||||||
}
|
}
|
||||||
@@ -651,6 +653,7 @@ export function createFollowActorPathControlEffect(options: {
|
|||||||
pathId: string;
|
pathId: string;
|
||||||
speed: number;
|
speed: number;
|
||||||
loop?: boolean;
|
loop?: boolean;
|
||||||
|
smoothPath?: boolean;
|
||||||
progressMode?: ActorPathProgressMode;
|
progressMode?: ActorPathProgressMode;
|
||||||
}): FollowActorPathControlEffect {
|
}): FollowActorPathControlEffect {
|
||||||
assertNonEmptyString(options.pathId, "Control actor path id");
|
assertNonEmptyString(options.pathId, "Control actor path id");
|
||||||
@@ -667,6 +670,7 @@ export function createFollowActorPathControlEffect(options: {
|
|||||||
pathId: options.pathId,
|
pathId: options.pathId,
|
||||||
speed: options.speed,
|
speed: options.speed,
|
||||||
loop: options.loop ?? false,
|
loop: options.loop ?? false,
|
||||||
|
smoothPath: options.smoothPath ?? true,
|
||||||
progressMode: options.progressMode ?? "deriveFromTime"
|
progressMode: options.progressMode ?? "deriveFromTime"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1034,6 +1038,7 @@ export function createResolvedActorPathAssignmentState(options: {
|
|||||||
pathId: string | null;
|
pathId: string | null;
|
||||||
speed: number | null;
|
speed: number | null;
|
||||||
loop: boolean;
|
loop: boolean;
|
||||||
|
smoothPath: boolean;
|
||||||
progressMode: ActorPathProgressMode | null;
|
progressMode: ActorPathProgressMode | null;
|
||||||
source: RuntimeResolvedControlSource;
|
source: RuntimeResolvedControlSource;
|
||||||
}): RuntimeResolvedActorPathAssignmentState {
|
}): RuntimeResolvedActorPathAssignmentState {
|
||||||
@@ -1065,6 +1070,7 @@ export function createResolvedActorPathAssignmentState(options: {
|
|||||||
pathId: options.pathId,
|
pathId: options.pathId,
|
||||||
speed: options.speed,
|
speed: options.speed,
|
||||||
loop: options.loop,
|
loop: options.loop,
|
||||||
|
smoothPath: options.smoothPath,
|
||||||
progressMode: options.progressMode,
|
progressMode: options.progressMode,
|
||||||
source: cloneResolvedControlSource(options.source)
|
source: cloneResolvedControlSource(options.source)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user