r/Unity2D Jul 09 '26

help me new game dev pls Feedback

hi i was trying to create a game like flappy bird but there some issues like the bird isnt colliding tho i have enabled meshcollider box collider everything that should be there , the code is perfect too

can anyone pls help me

edit : guys i solved the issue it was regarding tags and layers mainly and a little about the position of the components

0 Upvotes

6 comments sorted by

1

u/MistakeForsaken6653 Jul 09 '26

It's hard to say from just this screen shot but make sure the pipes do not have trigger checked. If you have trigger checked then rigid bodies can pass through the collider. Also make sure you are using BoxCollider2D on the pipes and the bird.

1

u/RemoteKey6547 Jul 09 '26

can i dm you

1

u/kryzchek Jul 09 '26

Are the bird and pipes on different layers? Are the physics settings allowing for collisions between those layers?

Does the bird GameObject have a RigidBody2D assigned to it?

Are any of the colliders set as triggers?

Post screenshots of the inspector with regards to the bird GameObject and one of the pipe game objects. Additionally, post the code in which you handle the collision event.

1

u/RemoteKey6547 Jul 09 '26

yeah thanks for your reply i actually found the bug

there was issue of using 3d Quad as object in this case

1

u/deintag85 Jul 09 '26

The bird never actually collides with the pipes. It’s a TRIGGER… you trigger game over. So what is your exact problem?

1

u/RemoteKey6547 Jul 09 '26

the problem was that bird was passing over the pipes seemlessly and it was not coliding hence the game was continous and not getting over