Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/simulator info #277

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/src/lib/components/sandbox/c_environment/Player.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
const spotTarget = cam.position.clone().add(direction.multiplyScalar(5));

// Move the target slightly up on the Y-axis to point above the player's view
spotTarget.y += 1.0; // Adjust this value to move it higher
spotTarget.y += 1.0;

torchLight.target.position.copy(spotTarget);
torchLight.target.updateMatrixWorld();
Expand Down
6 changes: 3 additions & 3 deletions src/src/lib/components/sandbox/c_environment/Scene_2.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
scene.backgroundIntensity = 0.02;
</script>

<Pane position="fixed" title="3D Environment Controls" x={1300} y={80}>
<Pane position="fixed" title="3D Environment Controls" x={1160} y={30 + 20} scale={1} width={256}>
<Text value="Use the 'WASD' keys to move around" disabled />
<Text value="Press escape 'Esc' to exit the scene" disabled />
<Text value="Use the mouse to look around" disabled />
<Text value="Press 'E' to interact with objects" disabled />
<Text value="Press to toggle the Torch" disabled />
<Text value="Press 'L' to toggle the Torch" disabled />
</Pane>

<Pane position="fixed" title="3D Environment Controls" x={1300} y={240}>
<Pane position="fixed" title="3D Environment Controls" x={1160} y={210 + 20} scale={1} width={256}>
<Text value="Press 'O' to exit stage" disabled />
</Pane>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@
</div>
{/if}

<main class="webgl h-screen bg-black">
{#if stagePicked}
{#if stagePicked}
<div class="webgl h-screen w-screen bg-black">
<Canvas>
<!-- <Menu/> -->
<World>
<MiningStage />
</World>
</Canvas>
{:else}
</div>
{:else}
<div class="webgl h-screen bg-black">
<Canvas>
<StarterScene />
</Canvas>
{/if}
</main>
</div>
{/if}
Loading