Results 1 to 7 of 7

Thread: Problem with collision detection

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question Problem with collision detection

    Hello everyone, im new to the forum

    So, im trying to recreate the original Asteroids game and im having a bit of a problem with my collision detection. I have an asteroid polygon made from lines which are made from float TPoint. The way my collision works is every tick, i make a line between the current bullet position and the future bullet position (x + xSpeed, y + ySpeed) and then check if an asteroid line intersects it and then destroy the bullet. But for unknown reasons to me, some of the bullets jump over the asteroid line and no collision occurs. Any ideas? i have attached my project as a zip, it's written in Delphi 10.3.

    Project file: https://gofile.io/?c=HJIyHW
    Last edited by IroncrossBG; 15-06-2019 at 12:29 PM. Reason: link

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •