Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
SolarFalconGame's avatar
SolarFalconGame
Honored Guest
8 years ago

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

2 Replies

Replies have been turned off for this discussion
  • BTW: My OVRCameraRig is childed to a gameObject that has those scripts attached. Shouldn't that allow me to rotate/move in world space?