Update ship positions
This commit is contained in:
parent
a9ae41c7eb
commit
c9d7b0f3a5
@ -159,6 +159,7 @@ export class Ship {
|
||||
this._ship = new TransformNode("shipBase", DefaultScene.MainScene);
|
||||
const data = await loadAsset("ship.glb");
|
||||
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
|
||||
// Position is now set from level config in Level1.initialize()
|
||||
|
||||
|
||||
@ -46,6 +46,7 @@ export class MissionBrief {
|
||||
|
||||
mesh.parent = ship;
|
||||
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.metadata = { uiPickable: true }; // TAG: VR UI - allow pointer selection
|
||||
console.log('[MissionBrief] Mesh parented to ship at position:', mesh.position);
|
||||
|
||||
@ -129,7 +129,7 @@ export class Scoreboard {
|
||||
gauges.setParent(null);
|
||||
gauges.setPivotPoint(gauges.getBoundingInfo().boundingSphere.center);
|
||||
gauges.setParent(oldParent);
|
||||
//gauges.rotation.z = Math.PI;
|
||||
//gauges.rotation.y = Math.PI;
|
||||
|
||||
// Create gauges display
|
||||
this.createGaugesDisplay(gauges);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user