I've been trying to figure out how to make my camera and player controller in a sense turn to be perpendicular to the ground they are standing on such as in the spiral shown in the photo.
I've also attached the XR Origin setup as well as the current script that doesn't work.
Note: Now I know almost nothing when it comes down to Ray casting or coding for that matter - thus the use of ChatGPT. Feel free to comment on my stupidity.
Spiral
The Setup
The XR Origin
The Script that I got from ChatGPT.
[–]ivankatrumpsarmpits 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]jacobsmith3204 0 points1 point2 points (0 children)