Make Buttons In Godot 4 VR (no plugin)
Make simple VR buttons in Godot 4.3 using Area3D and StaticBody3d (any PhysicsBody). At 6:32, the actual button tutorial starts, but before that, everything is related to VR setup in a new scene, just like this video ( • Setting up VR in Godot 4 in 4 Minutes )
Code for the project:
https://github.com/aimforbigfoot/NAD-LAB-Godot-Projects-4.0/tree/main/vrpointables
Link to XR setup docs:
https://docs.godotengine.org/en/stable/tutorials/xr/setting_up_xr.html
Timeline
0:00 - Demo Clip
0:18 - Intro
0:47 - Player VR setup
1:33 - Setting up the VR world
2:33 - Setting up VR controllers
3:10 - Changing Project Settings for VR rendering
3:50 - Turning on XR Cameras with Code
4:44 - Testing The VR World
5:40 - small oops
5:48 - Testing The VR World PROPERLY
6:32 - Putting Raycasts on Hands
7:35 - Programming the Raycast/Controller
8:07 - Making Area3D VR Buttons
9:02 - Making StaticBody VR Buttons
9:40 - Adding Buttons to our VR World Scene
10:15 - Testing to see if Raycasts are detecting both buttons
10:47 - Programming the controller to click (with signals)
11:34 - Checking our controller’s buttons
12:47 - Raycast collider explanation
13:13 - Setting the Active Pointed object
13:50 - Making Clicking the Controller DO SOMETHING
14:22 - Testing the clicking functionality
15:21 - OUTRO / PLAYING THE VR GAME
16:00 - Bloopers