martinbwg / Pixel-Tanks

1 stars 3 forks source link

Upgraded Bullet Collision #524

Closed cs6413110 closed 7 months ago

cs6413110 commented 7 months ago

Details

Basically use math to calculate the exact coordinates of a collision instead of the simple: x += speed y += speed if collision then destroy

@BreadSpam help with this Info: Bullets use this.e to show their creation time and have xd and yd values to show their speed. Calculation of exact hit position should be limited. Idk if we want to limit it to if a collision is detected or just it always. If we did it always people wouldn't be able to shoot through corners.

cs6413110 commented 7 months ago

@BreadSpam Can you debug why bullets are offcenter?

3foe commented 7 months ago

one more thing fix hit priority

cs6413110 commented 7 months ago

Close

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: BreadSpam @.> Sent: Thursday, May 2, 2024 11:38:13 AM To: cs6413110/Pixel-Tanks @.> Cc: cs6413110 @.>; Author @.> Subject: Re: [cs6413110/Pixel-Tanks] Upgraded Bullet Collision (Issue #524)

Real. It should prioritize ppl, not blocks. Also biker passive removed so not op. I don't want block to be forgotten

— Reply to this email directly, view it on GitHubhttps://github.com/cs6413110/Pixel-Tanks/issues/524#issuecomment-2091247351, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6Z4MTQVPVVF5EABV6BME7DZAKBZLAVCNFSM6AAAAABHC4Y5QWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGI2DOMZVGE. You are receiving this because you authored the thread.Message ID: @.***>