Uploaded September 2025 | Updated September 2026, 2 weeks ago
Are your projectiles in Unity colliding with the player who fired them? ๐ฏ
This is a super common problem โ bullets or raycasts instantly hitting your own collider.
There are several ways to fix it:
Using Project Settings โ Physics 2D โ Queries Start In Colliders
Ignoring the shooterโs colliders with Rigidbody2D.GetAttachedColliders
Using Physics2D.IgnoreCollision when spawning projectiles
Are your projectiles in Unity colliding with the player who fired them? ๐ฏ
This is a super common problem โ bullets or raycasts instantly hitting your own collider.
There are several ways to fix it:
Using Project Settings โ Physics 2D โ Queries Start In Colliders
Ignoring the shooterโs colliders with Rigidbody2D.GetAttachedColliders
Using Physics2D.IgnoreCollision when spawning projectiles










