Implement state tracking and position variables for targeting lux
This commit is contained in:
@@ -587,6 +587,8 @@ type RuntimeResolvedCameraSource =
|
|||||||
state: RuntimeDialogueAttentionState;
|
state: RuntimeDialogueAttentionState;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type TargetingLuxFlightState = "hidden" | "outbound" | "following" | "returning";
|
||||||
|
|
||||||
export class RuntimeHost {
|
export class RuntimeHost {
|
||||||
private readonly scene = new Scene();
|
private readonly scene = new Scene();
|
||||||
private readonly worldBackgroundRenderer = new WorldBackgroundRenderer();
|
private readonly worldBackgroundRenderer = new WorldBackgroundRenderer();
|
||||||
@@ -610,6 +612,8 @@ export class RuntimeHost {
|
|||||||
private readonly targetingVisualGroup = new Group();
|
private readonly targetingVisualGroup = new Group();
|
||||||
private readonly targetingLuxGroup = new Group();
|
private readonly targetingLuxGroup = new Group();
|
||||||
private readonly targetingActiveGroup = new Group();
|
private readonly targetingActiveGroup = new Group();
|
||||||
|
private readonly targetingLuxTargetPosition = new Vector3();
|
||||||
|
private readonly targetingLuxHomePosition = new Vector3();
|
||||||
private readonly targetingLuxMesh = new Mesh(
|
private readonly targetingLuxMesh = new Mesh(
|
||||||
new PlaneGeometry(0.32, 0.32),
|
new PlaneGeometry(0.32, 0.32),
|
||||||
createTargetingLuxCoreMaterial()
|
createTargetingLuxCoreMaterial()
|
||||||
@@ -640,6 +644,7 @@ export class RuntimeHost {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
private targetingLuxInitialized = false;
|
private targetingLuxInitialized = false;
|
||||||
|
private targetingLuxFlightState: TargetingLuxFlightState = "hidden";
|
||||||
private targetingVisualTime = 0;
|
private targetingVisualTime = 0;
|
||||||
private readonly firstPersonController =
|
private readonly firstPersonController =
|
||||||
new FirstPersonNavigationController();
|
new FirstPersonNavigationController();
|
||||||
|
|||||||
Reference in New Issue
Block a user