public void updateYawAndPitch(){
  long timeNow=System.currentTimeMillis();
  long deltaTime=timeNow - this.lastAngularUpdateTime;
  this.lastAngularUpdateTime=timeNow;
  double overclockScale=50.0 / (double)TimeHelper.serverTickLength;
  double deltaYaw=this.yawScale * overclockScale * this.maxAngularVelocityDegreesPerSecond* (deltaTime / 1000.0);
  double deltaPitch=this.pitchScale * overclockScale * this.maxAngularVelocityDegreesPerSecond* (deltaTime / 1000.0);
  mYaw+=deltaYaw;
  mCameraPitch+=deltaPitch;
  mCameraPitch=(mCameraPitch < -90) ? -90 : (mCameraPitch > 90 ? 90 : mCameraPitch);
}

public void updateYawAndPitch ( ) { long timeNow = System . currentTimeMillis ( ) ; long deltaTime = timeNow - this . lastAngularUpdateTime ; this . lastAngularUpdateTime = timeNow ; double overclockScale = 50.0 / ( double ) TimeHelper . serverTickLength ; double deltaYaw = this . yawScale * overclockScale * this . maxAngularVelocityDegreesPerSecond * ( deltaTime / 1000.0 ) ; double deltaPitch = this . pitchScale * overclockScale * this . maxAngularVelocityDegreesPerSecond * ( deltaTime / 1000.0 ) ; mYaw += deltaYaw ; mCameraPitch += deltaPitch ; mCameraPitch = ( mCameraPitch < - 90 ) ? - 90 : ( mCameraPitch > 90 ? 90 : mCameraPitch ) ; }
called to turn the robot / move the camera .
