How to apply rotation direction to velocity?
I have an object moving and turning at the same time. But when turn speed is much more lower than movement speed my object begin to move in other direction and it's rotation is not finished. So, how can i make this object move towards the direction of his rotation?
body.velocity = (wayponts[current_point].position - transform.position).normalized * speed * Time.deltaTime;
transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation((wayponts[current_point].position - transform.position).normalized), Time.deltaTime * angularSpeed);
Comment
set the velocity to the direction you're facing after turning. just use transform.forward as the vector