예제 #1
0
        protected virtual void ApplyAngularAuraModifiers(EngineSetup configuration, List <EngineAura> auras)
        {
            var angularAcceleration    = ApplyModifiers(configuration.angularAcceleration, auras.Select(a => a.angularAcceleration));
            var angularMaximumVelocity = ApplyModifiers(configuration.angularMaximumVelocity, auras.Select(a => a.angularMaximumVelocity));

            configuration.SetAngularMovement(angularAcceleration, angularMaximumVelocity);
        }