Hello guys, when I hit the walls instead of 1 hit I get multiple hits

When I hit the front and back



walls instead of 1 hit I get multiple hits. Does anyone know why this may happen? I am following the tutorial exactly!

1 Like

Hi,

That’s the expected behaviour. If you keep moving forwards, the physics simulation might be pushing the player back, and the player might hit the wall again. Please continue with the course. Rick implements a solution for preventing hitting the same game object multiple times.


See also:

2 Likes

Thanks Nina!

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

Privacy & Terms