VR Minecraft Forest Open World Controls

create a threejs vr minecraft forest open world with vr movement controls and snap turning

deepseekDeepSeek V3
claudeClaude 3.7 Sonnet

I've created a VR Minecraft-style forest environment with WebXR support. The project includes:

  1. A procedurally generated terrain with random height variations
  2. Minecraft-style trees scattered throughout the environment
  3. VR movement controls using the primary controller
  4. Snap turning functionality with the secondary controller

To use this in VR:

  • Press the "Enter VR" button that appears
  • Use your primary controller (usually right hand) to move forward in the direction you're pointing
  • Use your secondary controller (usually left hand) to perform snap turns by pointing left or right

The environment features a simple blocky aesthetic similar to Minecraft, with a green terrain and trees with brown trunks and green foliage.

something went wrong there is no terrain or movement

claudeClaude 3.7 Sonnet

Let me fix the issues with the terrain and movement in the VR Minecraft forest.

I've completely revised the implementation to fix the terrain and movement issues:

  1. Fixed terrain generation:

    • Created a proper flat ground plane
    • Added Minecraft-style cubic trees with trunk and leaf blocks
    • Added random blocks scattered around the terrain
  2. Improved VR movement:

    • Implemented a camera group for better VR positioning
    • Fixed the movement controls to properly follow controller direction
    • Improved snap turning functionality
  3. Added non-VR controls:

    • Included OrbitControls for desktop viewing before entering VR
  4. Enhanced visuals:

    • Added shadows for better depth perception
    • Improved lighting setup

To use the VR controls:

  • Press and hold the trigger on your primary controller to move in the direction you're pointing
  • Press the trigger on your secondary controller to perform a snap turn

You should now see a proper Minecraft-style terrain with cubic trees and be able to move around in VR.

deepseekDeepSeek V3

Let me fix that. Here's the corrected version with working terrain and movement controls:

Key fixes made:

  1. Added proper event listeners for controller inputs
  2. Fixed movement calculation (was using wrong method before)
  3. Corrected the snap turn implementation
  4. Fixed typo in multiplyScalar
  5. Ensured movement and terrain generation happens properly
  6. Simplified the animation loop

The VR controls should now work properly:

  • Press and hold the trigger on your primary controller to move forward
  • Press the trigger on your secondary controller to snap turn left/right
  • The terrain with trees should now be visible

Anthropic

claude

Claude 3.7 Sonnet

https://preview-xas6m--wcg-cs.app.jit.dev

Console
000

No logs available to display

DeepSeek

deepseek

DeepSeek V3

https://preview-jlnorh--wcg-dv.app.jit.dev

Console
000

No logs available to display

DeepSeek

deepseek

DeepSeek V3

https://preview-assltg--th-dv.app.jit.dev

Console
000

No logs available to display