Beispiel #1
0
 private float GetYRotation()
 {
     this.rotationY += Input.GetAxis("Mouse Y") * this.sensitivityY.Value;
     this.rotationY  = MouseLook2.ClampAngle(this.rotationY, this.minimumY, this.maximumY);
     return(this.rotationY);
 }
Beispiel #2
0
 private float GetXRotation()
 {
     this.rotationX += Input.GetAxis("Mouse X") * this.sensitivityX.Value;
     this.rotationX  = MouseLook2.ClampAngle(this.rotationX, this.minimumX, this.maximumX);
     return(this.rotationX);
 }