Ejemplo n.º 1
0
        protected virtual void ApplyLateralAuraModifiers(EngineSetup configuration, List <EngineAura> auras)
        {
            var lateralAcceleration    = ApplyModifiers(configuration.lateralAcceleration, auras.Select(a => a.lateralAcceleration));
            var lateralMaximumVelocity = ApplyModifiers(configuration.lateralMaximumVelocity, auras.Select(a => a.lateralMaximumVelocity));

            configuration.SetLateralMovement(lateralAcceleration, lateralMaximumVelocity);
        }