Example #1
0
        private void InitCache()
        {
            Util.DebugLog("Initializing cache");

            const double maxCacheVelocity        = 10000.0;
            const double maxCacheAoA             = Math.PI; //  180.0 / 180.0 * Math.PI
            const int    velocityResolution      = 32;
            const int    angleOfAttackResolution = 33;      // even number to include exactly 0°
            const int    altitudeResolution      = 32;

            cachedForces = new AeroForceCache(maxCacheVelocity, maxCacheAoA, body_.atmosphereDepth, velocityResolution, angleOfAttackResolution, altitudeResolution, this);
            isValid      = true;
        }
Example #2
0
        private void InitCache()
        {
            Debug.Log("Trajectories: Initializing cache");

            double maxCacheVelocity = 10000.0;
            double maxCacheAoA      = 180.0 / 180.0 * Math.PI;

            int velocityResolution      = 32;
            int angleOfAttackResolution = 33; // even number to include exactly 0°
            int altitudeResolution      = 32;

            cachedForces = new AeroForceCache(maxCacheVelocity, maxCacheAoA, body_.atmosphereDepth, velocityResolution, angleOfAttackResolution, altitudeResolution, this);

            isValid = true;

            return;
        }
        private void InitCache()
        {
            Debug.Log("Trajectories: Initializing cache");

            double maxCacheVelocity = 10000.0;
            double maxCacheAoA = 180.0 / 180.0 * Math.PI;

            int velocityResolution = 32;
            int angleOfAttackResolution = 33; // even number to include exactly 0°
            int altitudeResolution = 32;

            cachedForces = new AeroForceCache(maxCacheVelocity, maxCacheAoA, body_.atmosphereDepth, velocityResolution, angleOfAttackResolution, altitudeResolution, this);

            isValid = true;

            return;
        }