예제 #1
0
        public override void Update(double dt)
        {
            base.Update(dt);

            _drogueChute.Update(dt);
            _parachute.Update(dt);

            foreach (Skid skid in _skids)
            {
                skid.Update(dt);
            }
        }
예제 #2
0
        public override void Update(double dt)
        {
            if (_drogueDeployed)
            {
                _parachuteRatio = Math.Min(_parachuteRatio + dt * 0.03, 0.15);
            }
            else if (_parachuteDeployed)
            {
                _parachuteRatio = Math.Min(_parachuteRatio + dt * 0.03, 1);
            }

            base.Update(dt);

            _drogueChute.Update(dt);
            _parachute.Update(dt);
        }
예제 #3
0
        public override void Update(double dt)
        {
            if (_drogueDeployed)
            {
                _parachuteRatio = Math.Min(_parachuteRatio + dt * 0.03, 0.15);
            }
            else if (_parachuteDeployed)
            {
                _parachuteRatio = Math.Min(_parachuteRatio + dt * 0.03, 1);
            }

            base.Update(dt);

            _drogueChute.Update(dt);
            _parachute.Update(dt);

            if (_las != null && !_lasDeployed)
            {
                _las.UpdateChildren(Position, Velocity);
                _las.SetPitch(Pitch);
            }
        }