x


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!

more ▼

asked May 16 '12 at 01:25 PM

C4sh gravatar image

C4sh
21 3 4 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered May 16 '12 at 03:51 PM

Berenger gravatar image

Berenger
11k 12 19 53

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1791
x672
x292
x54

asked: May 16 '12 at 01:25 PM

Seen: 506 times

Last Updated: May 16 '12 at 03:51 PM