예제 #1
0
        public virtual void UpdatePhysics()
        {
            PrevCoordinates = coordinates;
            PrevVelocity    = Velocity;

            WasOnGround     = OnGround;
            PushedRightWall = PushesRightWall;
            PushedLeftWall  = PushesLeftWall;
            WasAtCeiling    = AtCeiling;

            coordinates += Velocity;
            Aabb.SetPosition(coordinates);
            Aabb.Recenter();
        }