godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.64k stars 19.32k forks source link

Godot 4.2.1 VR XRTools View and charactebody3D spins out of control and flies around like crazy relative to headtracking with no movement code #89822

Closed TrickyNerdy closed 3 months ago

TrickyNerdy commented 3 months ago

Tested versions

4.2.1 Mono stable

I also reinstalled windows, the oculus app and steam VR, Other VR games like VRChat work fine

System information

Windows 11 1660Super Godot 4.2.1 Mono Stable Meta Quest 2

Issue description

When using XR tools to set up a minimum VR project, the VR view spins like crazy. Rotating my head can change the direction and the player will move along the floor even with no movement code

Steps to reproduce

Create a project with this out line, all code is unchanged from XRTools, project is too big to upload

The MeshInstance3Ds are a floor plane, I've also tried thin cubes as floors and the other one is a floating cube for visual frame of referance

Screenshot 2024-03-23 185259

Minimal reproduction project (MRP)

project is too big to upload, see outline screenshot

Malcolmnixon commented 3 months ago

Issues on the Godot XR Tools asset should be posted in its issue system (https://github.com/GodotVR/godot-xr-tools).

If you follow the demo videos at the bottom of https://godotvr.github.io/godot-xr-tools/docs/player_body/ you'll notice the node configuration is different. It has:

Putting the XROrigin3D under the PlayerBody results in a feedback where even the slightest movement of the player causes the origin to move, which moves the player, which moves the origin, in an infinite cycle.

TrickyNerdy commented 3 months ago

@Malcolmnixon Putting the XROrigin3D under the PlayerBody results in a feedback where even the slightest movement of the player causes the origin to move, which moves the player, which moves the origin, in an infinite cycle.

Wow, this is exactly right, and perfectly fixed everything, thanks so much I'm so hype now to make a VR game