So I have a human character with a sword and some barrels in my scene. I have written a script for shattering barrels with the sword. I am using character controller on character (so no rigidbody component) and capsule collider (with rigidbody component) for barrels.
But when the character moves closer to the barrel it just floats in the air after colliding to it and stays there as I'm not using rigidbody component for the character. How do I fix this problem?
What is the correct way of handling colliders for humanoid characters?