I have an object following another, which appears to work great… Except the followers movement appears ‘jittery’. It looks kinda the follower is starting and then stopping between frames (which doesn’t make sense as I don’t reset the velocity).
void Update()
{
if (Vector2.Distance(Player.transform.position, transform.position) > 1f)
_chaseSpeed += 0.05f;
else
_chaseSpeed -= 0.1f;
_chaseSpeed = Mathf.Clamp(_chaseSpeed, 0, 4);
velocity = Vector3.Normalize(Player.transform.position - transform.position) * _chaseSpeed;
SetHover();
_rigidBody2D.velocity = velocity;
Debug.Log(_rigidBody2D.velocity);
}
Here is a video of my problem (not sure how clear it is to you guys).
Any help would be much appreciated!
Thanks