abraker95 / tanks

2D arcade top-view shooting game
1 stars 0 forks source link

Walls ( graphics + physics ) #41

Closed ghost closed 9 years ago

ghost commented 9 years ago

Working on it.

ghost commented 9 years ago

The circle-rect collision algorithm was maybe too simplistic. It shows strange behavious at corners.

ghost commented 9 years ago

Not checking collision for static objects somewhat resolved the problem with multiple objects colliding. I still need to resolve the problem with the corners and I will be done for now. We can improve the physics later. My aim is to have a playable game as soon as possible.

ghost commented 9 years ago

Creating new to implement issues to keep track of what is needed to finalize the game into the alpha stage.

On Thu, Dec 18, 2014 at 5:15 AM, Sherushe notifications@github.com wrote:

Not checking collision for static objects somewhat resolved the problem with multiple objects colliding. I still need to resolve the problem with the corners and I will be done for now. We can improve the physics later. My aim is to have a playable game as soon as possible.

— Reply to this email directly or view it on GitHub https://github.com/Sherushe/tanks/issues/41#issuecomment-67466210.

ghost commented 9 years ago

I will rewrite the entire physics part. After reading a couple of article, I have a good idea of what to do. I will implement a continous collision detection which resolves the problem with fast objects going through other objects and collisions between multiple objects,

ghost commented 9 years ago

I'm done with this for now. For simplification's sake, I replaced all bounding circles by bounding boxes. By reducing the size of them, it should work fine.

In the future, we should replace all with OBBs but the game is enjoyable without them I think.