@BastiaanOlij
  @BastiaanOlij
Bastiaan Olij | Dev stream 44 - An alternative setup for CharacterBody3D in Godot VR @BastiaanOlij | Uploaded December 2022 | Updated October 2024, 19 hours ago.
In this stream we build the basics of a setup where a CharacterBody3D forms the basis of our XR setup. The XR setup is added on top of the CharacterBody3D. We then write the code that continuously moves the CharacterBody3D node to the current location of the player by adjusting the XROrigin3D node. We detect collisions along the path so if the player physically tries to move through a wall we deal with that appropriately.

The whole setup ensures you can control the player in the same way as you would in a non-XR game.

You can find the branch with the code written during this stream here:
github.com/BastiaanOlij/godot4_openxr_demo/tree/PlayerBodyTest

This is all written in Godot 4 but the code should be very similar in Godot 3.x

Follow me on twitter for updates: twitter.com/mux213
Consider supporting me on Patreon: patreon.com/mux213

Please consider subscribing to my channel if you enjoyed the content.
Dev stream 44 - An alternative setup for CharacterBody3D in Godot VRDev stream 25 - Continuing with our racing gamegodot openvrDev stream 5 - Building a VR space shooter in GodotGodot - Test fighter VR 1Dev stream 21 - Looking into hand/finger tracking in OpenXRMy Godot XR Community Game Jam Entry  #gamejam #godotYouTube membership announcementGodot VR Weapons tutorial part 2 - teleport and picking up objectsGodot porting Sponza to Open VRDev stream 32 - Godot engine developmentChannel update May 2018

Dev stream 44 - An alternative setup for CharacterBody3D in Godot VR @BastiaanOlij

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER