Objects do not collide at high speed in 2D

I have a 2D game where a character fires a high velocity bullet like a sniper rifle. The problem is that the bullet does not collide with the enemy at that speed. Things I have configured:

  • Fixed update() instead of update()
  • Continuous collision instead of discrete
  • The bullet is fired with AddForce()
  • I also tried with raycast, it was better, but still bullet did not collide and pass through the objects

Hi @Ricollwy !
There are a few things that you can try.

  1. Check if the bullet has a Rigidbody.
  2. Check if the bullet has a collider with the Trigger check disabled.
  3. Check if the object that is passed through has a collider without the Trigger check marked.
  4. Enlarge the bullet collider size.
  5. If you are moving your object using the transform, you should do it in the Update, if you are using physics, move it in FixedUpdate.
  6. You can try to decrease a little bit the Time Step in Project Settings → Time → Fixed TimeStep.

If this helped, don’t forget to mark it as solved.