Forum Discussion
SolarFalconGame
8 years agoHonored Guest
Rotation and Movement
Hello :smile:
I am attempting to make a player controller that will allow a player to move around a scene with the Left Touch Thumbstick and rotate their forward vector with the Right. I got movement to work and rotation appears to work, but when trying to shoot objects from the hands, they aren't pointing in the direction they should be. What am I doing wrong? I searched to see if anyone else had this problem and I see stuff that is similar but not exactly what I'm doing.
Player Movement: https://pastebin.com/nyWLucQs
Player Rotation: https://pastebin.com/9y5P3FCs
I am attempting to make a player controller that will allow a player to move around a scene with the Left Touch Thumbstick and rotate their forward vector with the Right. I got movement to work and rotation appears to work, but when trying to shoot objects from the hands, they aren't pointing in the direction they should be. What am I doing wrong? I searched to see if anyone else had this problem and I see stuff that is similar but not exactly what I'm doing.
Player Movement: https://pastebin.com/nyWLucQs
Player Rotation: https://pastebin.com/9y5P3FCs
2 Replies
Replies have been turned off for this discussion
- SolarFalconGameHonored GuestBTW: My OVRCameraRig is childed to a gameObject that has those scripts attached. Shouldn't that allow me to rotate/move in world space?
- cyberealityGrand ChampionMoving to Unity dev section.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago
- 1 year ago
- 7 months ago