void OnRotate(Vector3 rotation)
 {
     if (IsPlaying == true)
     {
         //Debug.Log("Rotate: " + rotation);
         motor.Turn(rotation.y * turnSpeed);
         motor.Look(rotation.x * turnSpeed);
     }
 }
Beispiel #2
0
 void OnRotate(Vector3 rotation)
 {
     //camera looks vertical, plauer rotates left/right
     _motor.Turn(rotation.y * _turnSpeed);
     _motor.Look(rotation.x * _turnSpeed);
 }
Beispiel #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);
 }
Beispiel #5
0
 void OnRotate(Vector3 rotation)
 {
     //Debug.Log("Rotate: " + rotation);
     _motor.Turn(rotation.y * _turnSpeed);
     _motor.Look(rotation.x * _turnSpeed);
 }
 void OnRotate(Vector3 rotation)
 {
     // Debug.Log("Turn: " + rotation);
     motor.Turn(rotation.y * turnSpeed);
     motor.Look(rotation.x * turnSpeed);
 }
Beispiel #7
0
 void OnRotate(Vector3 rotation)
 {
     //change camera/turn from Motor, parameters in PlayerController
     _motor.Turn(rotation.y * _turnSpeed);
     _motor.Look(rotation.x * _turnSpeed);
 }