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 trialJames Harris
Courses Plus Student 441 PointsFrog 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
271 PointsIs the frog moves toward the wall without hitting any keys??? maybe you have a mistake in if statement!
will you post your codes?
Stijn De Vrij
2,086 PointsIf 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.