Enemies movement

What is the best way of moving my enemies?

  • A CharacterController
  • A RigidBody and applying forces to this Rigidbody
  • moving them with transform.position

I’ve tried with CharacterController but had problems so far when I made my enemies had to follow the Player’s character and with transform.position it’s not so realistic. I wonder what is the usual way of doing this.

Thanks!

It depends of your needs. Character controller is usefull if you need to know from where a direction came from, if you need to climb steps and other stuff. I find it rather heavy personally. If a rigidbody is enough, then go for a rigidbody. There is scripts using them on the wiki.