landgreen / n-gon

2-d physics rogue-lite platformer shooter
https://landgreen.github.io/n-gon/
GNU General Public License v3.0
134 stars 193 forks source link

Time dilation cancels bullet velocity #187

Closed kgurchiek closed 3 months ago

kgurchiek commented 3 months ago

Time dilation cancels the velocity of bullets, so if you shoot while using TD or shoot and then use it most bullets will get stuck in midair and despawn or fall straight to the ground, depending on the bullet type

landgreen commented 3 months ago

I can't reproduce this bug with time dilation and any gun. I didn't have any tech.

kgurchiek commented 3 months ago

https://github.com/landgreen/n-gon/assets/90143063/2597aa0d-5bfd-43ac-8f13-1e68b2eef7b9

I'm using Firefox

The-Rock-21 commented 3 months ago

That doesn't seem to be happening to me

landgreen commented 3 months ago

Thanks for the video. This looks like a problem with upgrading to the new 0.19 version of matter.js physics engine. I was testing on the 0.18 physics engine. There aren't any performance gains with 0.19 so unless there is some large changes in matter.js I'll just stay at 0.18.