Gravity getting all messed up when dead enemies collide

I don’t know if this issue happened due to this specific lecture, but I just discovered it now after adding a lot of enemies to my scene.

So basically, when I have 2 or more dead enemies on the ground, and their hitboxes (or rigidbodies) collide with anything, they start floating around like in the picture, also triggering an effect, which makes my Player character harder to control and floating a bit around himself.

I’ve tried to enable gravity on the character’s rigidbodies, but that doesn’t do anything.
I need help.

Also I can attack and hurt myself, but that’s an issue for another time.

Make sure that the character’s rigidbodies are set to isKinematic.
For the issue of attacking yourself, it’s probably because you have a CombatTarget on the player. You could check to make sure that the gameObject of the CombatTarget is not the same gameObject as the player if you want to keep a CombatTarget on your player.

That fixed both my issues!

Thank you once again for coming to the rescue!

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

Privacy & Terms