Add play and stop animation actions to interaction links

This commit is contained in:
2026-03-31 23:58:51 +02:00
parent ae9aa1c277
commit 580826b495

View File

@@ -14,7 +14,18 @@ export interface ToggleVisibilityAction {
visible?: boolean;
}
export type InteractionAction = TeleportPlayerAction | ToggleVisibilityAction;
export interface PlayAnimationAction {
type: "playAnimation";
targetModelInstanceId: string;
clipName: string;
}
export interface StopAnimationAction {
type: "stopAnimation";
targetModelInstanceId: string;
}
export type InteractionAction = TeleportPlayerAction | ToggleVisibilityAction | PlayAnimationAction | StopAnimationAction;
export interface InteractionLink {
id: string;