Enemy Car movement towards player
using this code.
transform.position = Vector3.SmoothDamp(transform.position, playerTowardMove.transform.position, ref velocity, enemyMoveSpeed);
car object movement well towards player but rotation is not right. what to do?
Comment
Answer by CaptainKirby · Sep 08, 2015 at 09:34 AM
use:
transform.LookAt(playerTowardMove.transform);
More info: https://unity3d.com/learn/tutorials/modules/beginner/scripting/look-at
Your answer
Follow this Question
Related Questions
Shaky (jittery) 2D car movement. 0 Answers
MotionBlur 0 Answers
how to move objects along a curve? 2 Answers
smooth car movement for car game 0 Answers
I'm making a zero gravity VR game and need help with the movement. Could someone help? 0 Answers