How come the Player bounces on the floor?

I noticed that at 9:40 in the video the player object bounces on the floor when hitting the head, but mine doesn’t.

I am using Unity 2021.2.11f1 and the head won’t even touch the ground. I have to add another collider that is not a trigger just to make the head touch the ground. Otherwise the Player will clip right through the ground.

2 Likes

Hi,

Welcome to our community! :slight_smile:

Actually, Rick’s Barry should have dived into the ground instead of bouncing off. In later videos, you can see, that he doesn’t bounce anymore. Rick suspects that the surface effector made the head bounce in this case. Sometimes, there are undesired side-effects, and since we didn’t write the Collider2D classes or the surface effector class ourselves, we cannot prevent those side-effects.

Adding another collider to achieve the same effect was a good idea.


See also:

1 Like

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

Privacy & Terms