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.
- Check if the bullet has a Rigidbody.
- Check if the bullet has a collider with the Trigger check disabled.
- Check if the object that is passed through has a collider without the Trigger check marked.
- Enlarge the bullet collider size.
- 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.
- 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.