Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Basic Colissions #19

Open
DominicDolan opened this issue Nov 3, 2020 · 0 comments
Open

Basic Colissions #19

DominicDolan opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@DominicDolan
Copy link
Owner

DominicDolan commented Nov 3, 2020

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 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.

@DominicDolan DominicDolan added the enhancement New feature or request label Nov 3, 2020
@DominicDolan DominicDolan added this to the General milestone Nov 3, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant