You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way of implementing collisions is to either do it yourself or import a physics library. It is still recommended to import a physics library when full physics is being used but there should be a way to do some basic collision checking without any dependencies.
Motive
A method for managing basic orthogonal collisions would be very helpful for certain types of game.
Task
Have a way of detecting collisions for rectangles and move two colliding rectangles out of the way of each other. There should be an interface called Collidable to make this work and perhaps something like StaticCollidable for objects that don't move out of the way but instead act like a wall. It might also be a good idea to have some class called CollisionPlane or something similar which acts like a collision manager. Additionally, the basic implementation for the Collidable interface should be a CollidableScene so that these collidable objects can interact properly with the rest of the Game Engine.
The text was updated successfully, but these errors were encountered:
Info
Currently the only way of implementing collisions is to either do it yourself or import a physics library. It is still recommended to import a physics library when full physics is being used but there should be a way to do some basic collision checking without any dependencies.
Motive
A method for managing basic orthogonal collisions would be very helpful for certain types of game.
Task
Have a way of detecting collisions for rectangles and move two colliding rectangles out of the way of each other. There should be an interface called
Collidable
to make this work and perhaps something likeStaticCollidable
for objects that don't move out of the way but instead act like a wall. It might also be a good idea to have some class calledCollisionPlane
or something similar which acts like a collision manager. Additionally, the basic implementation for theCollidable
interface should be aCollidableScene
so that these collidable objects can interact properly with the rest of the Game Engine.The text was updated successfully, but these errors were encountered: