예제 #1
0
        private void FireThrusterSprtFire(List <MyVector[]> thrusters, ThrusterKey key)
        {
            foreach (MyVector[] thruster in thrusters)
            {
                _ship.ApplyInternalForce(thruster[0], thruster[1] * _thrustForceMultiplier);

                MyVector offsetWorld = _ship.Rotation.GetRotatedVector(thruster[0], true);
                offsetWorld.Add(_ship.Position);

                MyVector forceWorld = _ship.Rotation.GetRotatedVector(thruster[1], true);

                DrawThrustRunning(offsetWorld, forceWorld, _thrusterColors[key]);
            }
        }