#Rigidbody2D ammo falling between tiles
5 messages · Page 1 of 1 (latest)
It looks like your bullets are spawning a little bit inside your collider, and with your gravity that seems very strong, it sometimes snaps inside your collider...
Is the problem still there if you reduce your gravity and/or try to make the bullet spawn a bit higher?
Tested turning gravity to 0.5 and jumping to make sure it didn't spawn inside of the collision, but there was no change 😦
I think what the problem is is that your gravity is really strong (objects are pulled downward very rapidly) and the rigidbody of your bullets can't process the collision because the delta position each frame is very big (and the collision detection margin might not be big enough). If you don't want your gravity to be way smaller than what you have now (because it may be part of your gameplay), maybe you can check under the rigidbody settings of your bullet scene if you can change the CCDMode (which is supposed to be at 0 / CCD_MODE_DISABLED by default) to 1 / CCD_MODE_RAY
This way it will cast a ray between the initial position and the new position after the force (here it's gravity, but it can be any force) has been applied, and if the ray hits something it will count the collision.
It should be enough to solve your problem, but if it isn't try to check in the api of the Rigidbody2D if you can change a setting that might be appropriate to your issue