Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.