Update ship positions

This commit is contained in:
Michael Mainguy 2025-11-28 10:46:39 -06:00
parent a9ae41c7eb
commit c9d7b0f3a5
3 changed files with 3 additions and 1 deletions

View File

@ -159,6 +159,7 @@ export class Ship {
this._ship = new TransformNode("shipBase", DefaultScene.MainScene); this._ship = new TransformNode("shipBase", DefaultScene.MainScene);
const data = await loadAsset("ship.glb"); const data = await loadAsset("ship.glb");
this._ship = data.container.transformNodes[0]; this._ship = data.container.transformNodes[0];
//this._ship.rotation = new Vector3(0, Math.PI, 0);
// this._ship.id = "Ship"; // Set ID so mission brief can find it // this._ship.id = "Ship"; // Set ID so mission brief can find it
// Position is now set from level config in Level1.initialize() // Position is now set from level config in Level1.initialize()

View File

@ -46,6 +46,7 @@ export class MissionBrief {
mesh.parent = ship; mesh.parent = ship;
mesh.position = new Vector3(0,1,2.8); mesh.position = new Vector3(0,1,2.8);
// mesh.rotation = new Vector3(0, Math.PI, 0);
//mesh.renderingGroupId = 3; // Same as status screen for consistent rendering //mesh.renderingGroupId = 3; // Same as status screen for consistent rendering
mesh.metadata = { uiPickable: true }; // TAG: VR UI - allow pointer selection mesh.metadata = { uiPickable: true }; // TAG: VR UI - allow pointer selection
console.log('[MissionBrief] Mesh parented to ship at position:', mesh.position); console.log('[MissionBrief] Mesh parented to ship at position:', mesh.position);

View File

@ -129,7 +129,7 @@ export class Scoreboard {
gauges.setParent(null); gauges.setParent(null);
gauges.setPivotPoint(gauges.getBoundingInfo().boundingSphere.center); gauges.setPivotPoint(gauges.getBoundingInfo().boundingSphere.center);
gauges.setParent(oldParent); gauges.setParent(oldParent);
//gauges.rotation.z = Math.PI; //gauges.rotation.y = Math.PI;
// Create gauges display // Create gauges display
this.createGaugesDisplay(gauges); this.createGaugesDisplay(gauges);