Gingerbeard5773 / Shiprekt

A King Arthurs Gold mod with top-down naval combat.
2 stars 4 forks source link

Bullet collision deflection #124

Closed NoahTheLegend closed 2 years ago

Gingerbeard5773 commented 2 years ago

This is actually a bug that I accidentally introduced early into my dev. I left it in because it is fun sometimes, I wont lie. If you or someone else believe that it is an annoyance ill go ahead and patch it up.

NoahTheLegend commented 2 years ago

i meant not lose speed when colliding with each other but change its trajectory. On collide it loses a lot of their speed but keep moving to diff sides. You misunderstood me in a remove their collisions with each other way

Gingerbeard5773 commented 2 years ago

If thats the case then there would probably have to be some actual implementation to calculate where the bullets would go, since kag collisions don't keep a blobs velocity and it can stop both blobs if they hit directly. Is this worth it?

NoahTheLegend commented 2 years ago

idk how easy to do that calculations but if i believe if you put saving-the-bullet-velocity-code after it calculates the side to go after a collision then its worth and not that hard

Gingerbeard5773 commented 2 years ago

calculations were unneeded, instead I changed the shape of the bullet to a triangle, with the point going in the direction it is shot, deflection is almost certain. this is done