void OnRotate(Vector3 rotation)
 {
     if (IsPlaying == true)
     {
         //Debug.Log("Rotate: " + rotation);
         motor.Turn(rotation.y * turnSpeed);
         motor.Look(rotation.x * turnSpeed);
     }
 }
Example #2
0
 void OnRotate(Vector3 rotation)
 {
     //camera looks vertical, plauer rotates left/right
     _motor.Turn(rotation.y * _turnSpeed);
     _motor.Look(rotation.x * _turnSpeed);
 }
Example #3
0
 private void OnRotate(Vector3 rotation)
 {
     _motor.Look(rotation.x * _turnSpeed);
     _motor.Turn(rotation.y * _turnSpeed);
 }
 private void OnRotate(Vector3 rotation)
 {
     motor.Turn(rotation.y * currentTurnSpeed);
     motor.Look(rotation.x * currentTurnSpeed);
 }
Example #5
0
 void OnRotate(Vector3 rotation)
 {
     //Debug.Log("Rotate: " + rotation);
     _motor.Turn(rotation.y * _turnSpeed);
     _motor.Look(rotation.x * _turnSpeed);
 }
Example #6
0
 void OnRotate(Vector3 rotation)
 {
     // Debug.Log("Turn: " + rotation);
     motor.Turn(rotation.y * turnSpeed);
     motor.Look(rotation.x * turnSpeed);
 }
Example #7
0
 void OnRotate(Vector3 rotation)
 {
     //change camera/turn from Motor, parameters in PlayerController
     _motor.Turn(rotation.y * _turnSpeed);
     _motor.Look(rotation.x * _turnSpeed);
 }