auto-git:
[change] src/runtime-three/runtime-host.ts
This commit is contained in:
@@ -47,7 +47,11 @@ import {
|
|||||||
type Brush,
|
type Brush,
|
||||||
type WhiteboxFaceId
|
type WhiteboxFaceId
|
||||||
} from "../document/brushes";
|
} from "../document/brushes";
|
||||||
import { resolveNearestPointOnResolvedScenePath } from "../document/paths";
|
import {
|
||||||
|
mapWorldPointToScenePathProgressBetweenPoints,
|
||||||
|
resolveNearestPointOnResolvedScenePath,
|
||||||
|
sampleResolvedScenePathPosition
|
||||||
|
} from "../document/paths";
|
||||||
import {
|
import {
|
||||||
applyControlEffectToResolvedState,
|
applyControlEffectToResolvedState,
|
||||||
createDefaultResolvedControlSource,
|
createDefaultResolvedControlSource,
|
||||||
@@ -339,13 +343,19 @@ export interface RuntimePauseState {
|
|||||||
source: "manual" | "control" | "mixed" | null;
|
source: "manual" | "control" | "mixed" | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RuntimeCameraRigBlendState {
|
type RuntimeCameraSourceKey = "gameplay" | `rig:${string}`;
|
||||||
|
|
||||||
|
interface RuntimeCameraPose {
|
||||||
|
position: Vector3;
|
||||||
|
lookTarget: Vector3;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RuntimeCameraTransitionState {
|
||||||
durationSeconds: number;
|
durationSeconds: number;
|
||||||
elapsedSeconds: number;
|
elapsedSeconds: number;
|
||||||
fromPosition: Vector3;
|
fromPose: RuntimeCameraPose;
|
||||||
fromLookTarget: Vector3;
|
toPose: RuntimeCameraPose;
|
||||||
toPosition: Vector3;
|
destinationSourceKey: RuntimeCameraSourceKey;
|
||||||
toLookTarget: Vector3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RuntimeHost {
|
export class RuntimeHost {
|
||||||
@@ -465,9 +475,11 @@ export class RuntimeHost {
|
|||||||
private lastPublishedClockState: RuntimeClockState | null = null;
|
private lastPublishedClockState: RuntimeClockState | null = null;
|
||||||
private currentPlayerAudioHooks: RuntimePlayerAudioHookState | null = null;
|
private currentPlayerAudioHooks: RuntimePlayerAudioHookState | null = null;
|
||||||
private activeCameraRigOverrideEntityId: string | null = null;
|
private activeCameraRigOverrideEntityId: string | null = null;
|
||||||
|
private activeCameraSourceKey: RuntimeCameraSourceKey | null = null;
|
||||||
private activeRuntimeCameraRigId: string | null = null;
|
private activeRuntimeCameraRigId: string | null = null;
|
||||||
private activeRuntimeCameraRig: RuntimeCameraRig | null = null;
|
private activeRuntimeCameraRig: RuntimeCameraRig | null = null;
|
||||||
private cameraRigBlendState: RuntimeCameraRigBlendState | null = null;
|
private cameraTransitionState: RuntimeCameraTransitionState | null = null;
|
||||||
|
private suppressNextCameraSourceTransition = false;
|
||||||
private cameraRigLookYawRadians = 0;
|
private cameraRigLookYawRadians = 0;
|
||||||
private cameraRigLookPitchRadians = 0;
|
private cameraRigLookPitchRadians = 0;
|
||||||
private cameraRigLookDragging = false;
|
private cameraRigLookDragging = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user