Example #1
0
        public void Update(double dt)
        {
            SBG.Update(dt);
            PM.CheckCollisions();

            foreach (var collision in PM.Collisions)
            {
                CRM.ResolveCollision(collision);
            }

            AS.Update(dt);
            Scene.Update(dt);
        }
Example #2
0
        public void Update(double dt)
        {
            SBG.Update(dt);
            PM.CheckCollisions();

            Console.WriteLine(PM.BoxComponents.Count);
            foreach (var collision in PM.Collisions)
            {
                CRM.ResolveCollision(collision);
            }

            AS.Update(dt);
            Scene.Update(dt);
        }