I don't understand why the enemy is rolling on the ground

I don’t understand why the enemy is rolling on the ground though it has quite the same properties and components as the player does.
Here is the video: Platformer2D - SampleScene - Windows, Mac, Linux - Unity 2022.3.7f1_ _DX11_ 2023-09-28 13-53-03.mp4 - Google Drive

Do you have any clue with this mushroom is behaving like that? Please help

Hi,

Did you restrict the z-rotation in the ‘Constraints’ of the enemy’s Rigidbody2D component?


See also:

Hey, yeees, that works. I forgot about this option. Thank you! Have a pleasant day.

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

Privacy & Terms