- Home /
Should you use CharacterController.Move or SimpleMove for enemies?
Seems like there shouldn't be an issue with using move or simplemove for enemies except it says right in the Scripting API "It is recommended that you make only one call to Move or SimpleMove per frame."
https://docs.unity3d.com/ScriptReference/CharacterController.SimpleMove.html
And presuming you are using move or simplemove for your player then you shouldn't be using it at all for your enemies...but why? Could they mean you should only make one call per CharacterController? Or am I just misunderstanding things all together?
Hope this hasn't already been asked, I googled around quite a bit looking for an answer. Thanks!
Answer by keckles · Mar 29, 2018 at 03:30 AM
I'm pretty sure it is talking about per CharacterController because trying to move the same object in different directions on the same frame wouldn't work (it would probably just cause lag and do the last move called.) Anyway, I usually use move multiple times per frame on different GameObjects and it works fine.
Your answer
Follow this Question
Related Questions
How to forbid an NPC to move diagonally using Character Controller? 1 Answer
How to check if a character hasn't changed its position in the last x seconds? 1 Answer
Moving AI away or towards player not working correctly. 1 Answer
Make AI move using CharacterController.Move instead of rigidbody.velocity? 3 Answers