djog / tank_battalion

Tank Battalion recreation by DJOG Uno's 2020 in processing.
GNU General Public License v3.0
3 stars 0 forks source link

Implement Collision detection between Player & Enemies #22

Closed rijkvp closed 3 years ago

rijkvp commented 4 years ago

Currently the player & enemies don't collide witch each other. To implement this in a good way that also fits the collision detection for the shells I thinks we need to create a hashmap system I used in the Physics system last year.

Create a global hashmap variable in collision detection tab called colliders that stores the players & enemies by id and AABB. If a player or enemy gets updated the corresponding AABB should be updated as well.

PS: If you know a better approach please let me now. If used this system before and out of experience i know it just works.