Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development How to Make a Video Game Player Input and Cameras Make a Follow Camera

James Harris
PLUS
James Harris
Courses Plus Student 441 Points

Frog moves through wall.

Just what my question states. I saw a mention of rigidbody and colliders in one of the earlier videos but don't recall it telling me what exactly to do about it.

2 Answers

Yousef Almutairi
Yousef Almutairi
271 Points

Is the frog moves toward the wall without hitting any keys??? maybe you have a mistake in if statement!

will you post your codes?

If you want objects to collide with each other, all of the objects need colliders (box, sphere, mesh,..). For the collisions to work at least one of the two objects you want to collide needs to have a RigidBody component. If objects then still move though each other go back to your object's collider component and check if the "trigger" checkbox is checked, it should be unchecked.