예제 #1
0
        protected virtual void ApplyRigidbody2DAuraModifiers(EngineSetup configuration, List <EngineAura> auras)
        {
            var mass        = ApplyModifiers(configuration.mass, auras.Select(a => a.mass));
            var drag        = ApplyModifiers(configuration.drag, auras.Select(a => a.drag));
            var angularDrag = ApplyModifiers(configuration.angularDrag, auras.Select(a => a.angularDrag));

            configuration.SetRigidbody2DValues(mass, drag, angularDrag);
        }