Question by
deadlycrow · Mar 30, 2017 at 06:34 AM ·
updatenavmeshagentcamera-movementfixedupdatemoveposition
Choppy camera, moving player in FixedUpdate and enemies through navmesh
Well thats my problem, i move the player thourgh Rigidbody.MovePosition, and my enemies through Navmesh, so if i put my camera code to follow the player in the FixedUpdate there is no problem with the player, it moves very smooth, but my enemies are very jaggy in their movement(because i believe they move in the update) and if i put my camra coe in the Update, my seems are smooth but the player now has a choppy movement... what to do in this case?????
Comment
Add camera code in the LateUpdate() ins$$anonymous$$d of fixed update. Physics object moves n fixed update.
Same thing, character moves in a choppy way, while enemies are smooth :/
move enemies with time.deltatime. Can you show code how you are moving your enemies?