Public paste
sdfsdd
By: dfs | Date: Oct 12 2009 07:51 | Format: None | Expires: never | Size: 671 B | Hits: 813

  1. double pitchSin = Math.Sin(FPitchCounter);
  2.                         FPitchCounter += e.DeltaTime / 3;
  3.                         if (FPitchCounter > (2 * Math.PI))
  4.                         {
  5.                             FPitchCounter = 0;
  6.                         }
  7.  
  8.                         double yawSin = Math.Sin(FYawCounter);
  9.                         FYawCounter += e.DeltaTime / 4;
  10.                         if (FYawCounter > (2 * Math.PI))
  11.                         {
  12.                             FYawCounter = 0;
  13.                         }
  14.                         FElmTiming.Pitch = (float)pitchSin / 4;
  15.                         FElmTiming.Yaw = (float)yawSin / 4;