villermen / hatlessengine

An easy to use 2D game engine written in C#
Other
1 stars 1 forks source link

Improvements for collision system #92

Open villermen opened 10 years ago

villermen commented 10 years ago

Somehow integrate the side collided with (on the current object), and decide whether to bounce or keep going. (Also based on this side? Or something with directions?) Do not base bouncing on relativespeed or angles, since that is bound to give passthroughs.

villermen commented 9 years ago

Also, this stuckens the game: welp

villermen commented 9 years ago

One method (or delegate) that receives all collisions (this, physicalobject).

villermen commented 9 years ago

We can cache collision candidates for as long as we (or them) do not change direction, but this might be too complex.