Open agnacore opened 8 months ago
step 5: collision detection 5.1: define hitboxes 5.2: create multithread, maybe? 5.3: hey maybe you can just use the one you already made, that works fine 5.4: adapt it for the new bounds style (how the corners are found)
(this one is more "I'll figure more out when I get there")
Use the
offset
fields to define a hitbox for each ship.Compare the location of the projectile with the location of the ship (compare bounding boxes).
Use multithreading if it helps.