Skip to content

Commit

Permalink
Update for location and settings bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismbirmingham committed Jul 11, 2023
1 parent 44cc970 commit c4261e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/components/World/NodeSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,9 @@ class NodeSettings extends React.PureComponent<Props, State> {
ComboBox.option(LocalizedString.lookup(tr('Radiation Science Pack'), locale), 'noradscience'),
ComboBox.option(LocalizedString.lookup(tr('Communication Tower 2'), locale), 'commstower'),
ComboBox.option(LocalizedString.lookup(tr('Science Pad'), locale), 'sciencepad'),
ComboBox.option(LocalizedString.lookup(tr('Hab 2'), locale), 'habitat'),
ComboBox.option(LocalizedString.lookup(tr('Living Habitat'), locale), 'habitat'),
ComboBox.option(LocalizedString.lookup(tr('Research Habitat'), locale), 'research_habitat'),
ComboBox.option(LocalizedString.lookup(tr('Controls Habitat'), locale), 'control_habitat'),
ComboBox.option(LocalizedString.lookup(tr('Walkway'), locale), 'walkway'),
ComboBox.option(LocalizedString.lookup(tr('Solar Panel'), locale), 'solarpanel'),
ComboBox.option(LocalizedString.lookup(tr('BotGuy Astronaut'), locale), 'botguy'),
Expand Down
2 changes: 1 addition & 1 deletion src/node-templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export const preBuiltGeometries = Object.freeze<Dict<Geometry>>({
},
'commstower': {
type: 'file',
uri: '/static/object_binaries/comm_tower.glb'
uri: '/static/object_binaries/comm_tower_lowered.glb'
},
'habitat': {
type: 'file',
Expand Down
13 changes: 8 additions & 5 deletions src/scenes/moonSandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,29 @@ const SOLARPANEL_ORIGIN: ReferenceFrame = {
};

const WALKWAY_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 65),
position: Vector3.centimeters(50, 9, 65),
scale: { x: 12, y: 12, z: 12 }
};

const COMMSTOWER_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(80, 0, 0),
position: Vector3.centimeters(80, 4, 0),
scale: { x: 7, y: 7, z: 7 }
};

const HABITAT_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 95),
position: Vector3.centimeters(50, 3.5, 95),
scale: { x: 12, y: 12, z: 12 },
orientation: Rotation.eulerDegrees(0, 180, 0)
};

const RESEARCH_HABITAT_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 35),
position: Vector3.centimeters(50, 3.5, 35),
scale: { x: 12, y: 12, z: 12 },
orientation: Rotation.eulerDegrees(0, 180, 0)
};

const CONTROL_HABITAT_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 5),
position: Vector3.centimeters(50, 3.5, 5),
scale: { x: 12, y: 12, z: 12 },
orientation: Rotation.eulerDegrees(0, 180, 0)
};
Expand Down Expand Up @@ -213,6 +213,7 @@ export const Moon_Sandbox: Scene = {
name: tr('Science Pad'),
startingOrigin: SCIENCEPAD_ORIGIN,
origin: SCIENCEPAD_ORIGIN,
editable: true,
visible: true,
},
'container': {
Expand Down Expand Up @@ -299,6 +300,7 @@ export const Moon_Sandbox: Scene = {
geometryId: 'indicator',
name: tr('Life Indicator Light'),
visible: false,
editable: true,
origin: {
position: Vector3.centimeters(-10, 4, 110)
},
Expand All @@ -315,6 +317,7 @@ export const Moon_Sandbox: Scene = {
geometryId: 'indicator',
name: tr('No Life Indicator Light'),
visible: false,
editable: true,
origin: {
position: Vector3.centimeters(10, 4, 110)
},
Expand Down
3 changes: 3 additions & 0 deletions static/object_binaries/comm_tower_lowered.glb
Git LFS file not shown

0 comments on commit c4261e1

Please sign in to comment.