// Update is called once per frame void Update() { rb.velocity = curVel = (seekBehaviour.getNewVelWithSteerApplied(rb.velocity, maxSpeed, maxSpeed * .5f)); //bad rotation code but doesn't matter for now rb.rotation = Quaternion.Slerp(rb.rotation, Quaternion.LookRotation(rb.velocity, Vector3.up), Time.deltaTime); }