feat: tactical icons, follow-camera orbit, and ship info panel

This commit is contained in:
2026-03-18 22:45:33 -04:00
parent f98c47a8a7
commit aa4a6930ba
17 changed files with 154 additions and 118 deletions

View File

@@ -39,6 +39,8 @@ export interface ViewerNavigationContext {
getPovLevel: () => PovLevel;
getSelectedItems: () => Selectable[];
getOrbitYaw: () => number;
getFollowOrbitYaw: () => number;
getFollowOrbitPitch: () => number;
galaxyAnchor: THREE.Vector3;
systemAnchor: THREE.Vector3;
galaxyCamera: THREE.PerspectiveCamera;
@@ -126,6 +128,8 @@ export class ViewerNavigationController {
followCameraOffset: this.context.followCameraOffset,
systemAnchor: this.context.systemAnchor,
delta,
followOrbitYaw: this.context.getFollowOrbitYaw(),
followOrbitPitch: this.context.getFollowOrbitPitch(),
getAnimatedShipLocalPosition,
toDisplayLocalPosition: (localPosition) => toDisplayLocalPosition(localPosition),
resolveShipHeading: (visual, worldPosition) => resolveShipHeading(visual, worldPosition, this.context.getOrbitYaw()),