collision and animator in component of gameobject

hi! i am creating a game that i need to add collision and any animation to a game object.
my problem is when i add animator in my game object, its collision doesn’t work correctly else!
note that animation must change the position or rotatoin of the game object.

Thats probably because for your collisions to work you are probably using a rigidbody but your animator will effect the transform, this is a big no no.

Basically if you want your collisions to work consistently you should use functions such as add force etc etc.

The exception to this is the CharacterController, which as you can guess is designed for characters, where they can detect collisions but move as you would expect a character to.

I you still want to use your animator I think you need to do a more manual collision system.