Section 2 # 21 collision with plane detected on 'play'

Hi! So I’ve been following along with the tutorials line per line for every video. Aside from a difference in my object sizes, I haven’t done much experimentation with anything else.

For some reason, while following #21 of the tutorials, I noticed that the "Bumped into a thing this many times: " notification appears immediately after I press ‘Play’ when testing my game. The only conclusion I have is that the Collision method is detecting the Player object making contact with the ground. I’ve changed the Y axis of my player to make it hover slightly off the ground, but is there any way to solve this without making this change?

Thank you. I’m loving the tutorials so far!

Hi,

Welcome to our community! :slight_smile:

You could add an if-statement to your code to “filter” the collision. For example, you could compare the name of the colliding game object to “Ground” (or whatever you named your game object) to prevent the message from appearing in your console when the player touches the ground.

1 Like

Thank you so much!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.