The sphere keeps falling through the floor.

I just finished the second video of the roll-a-ball tutorial but my sphere(player) keeps falling of the Ground. What am I doing wrong?

Ok, so the sphere is falling. That means there is a rigidbody component attached to the sphere. The ground needs a collider component attached to it so the physics engine can prevent it penetrating the ground. Review the video again and I’m sure you will see the author add a collider to the ground. See Add Component in the inspector pane.

1 Like

They both need to have a component of type collider (Sphere collider, etc).

1 Like

Check that you’ve added colliders to both objects like the others have mentioned. After that check and make certain that the colliders are not already intersecting. In the tutorial the ball is moved a little ways up but you may need to move it up a bit more if the ball’s collider is intersecting the plane.

3 Likes

this is a Maze game - Both the floor and the ball have colliders on them so when I roll the ball it touches the the wall and so I tilt it back in a different direction the ball falls through the floor