Exemplo n.º 1
0
 float GetFlatDistance(GamePlatform platform)
 {
     return platform.MathCos(Angle * Game.GetPi() / 180) * distance;
 }
Exemplo n.º 2
0
 public void GetPosition(GamePlatform platform, Vector3Ref ret)
 {
     float cx = platform.MathCos(tt * one / 2) * GetFlatDistance(platform) + Center.X;
     float cy = platform.MathSin(tt * one / 2) * GetFlatDistance(platform) + Center.Z;
     ret.X = cx;
     ret.Y = Center.Y + GetCameraHeightFromCenter(platform);
     ret.Z = cy;
 }