Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objects not colliding in 2D project

I've set up a 2D project in Unity (4.3.4). It has a ball and ground. The ball is in the air.

To the ball I've added Box Collider 2D and Rigidbody 2D, standard values.

To the ground I've added Box Collider 2D.

When I run the game, the ball falls, but instead of stopping when hitting the ground, it continues and keep falling.

Where did I go wrong? By the tutorials this should simply work?

like image 534
Jason94 Avatar asked Dec 29 '25 16:12

Jason94


1 Answers

Check if one of the two colliders has the checkbox isTrigger checked. They should both be unchecked for collisions to work. First time that happened to me it took me a whole day to figure it out xD

like image 86
Steven Mills Avatar answered Jan 01 '26 09:01

Steven Mills



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!