|
So i have been using this program for a few days now, watched a bunch of tutorials and i ran into this problem. When i go to rotate my char, it will rotate on the wrong axis. I cant seem to figure out how to change this. Im using the code from TornadoTwins. I edited out the movement part as i do not want this to move, but only rotate. Right now im rotating via side view, and i want to rotate via top view, or the global Y axis. Basicly my question is, how can i change this script to use global axis rather than local? var rotateSpeed = 3; var bullitPrefab: Transform; function Update () { var controller : CharacterController = GetComponent(CharacterController ); } @script RequireComponent( CharacterController );
(comments are locked)
|
