follow the leader using lerp to "Lag" objects so they apear to be following the leader. Followtheleader.cs(13,51): error CS1501: No overload for method `Slerp' takes `2' arguments

Hi gang, trying to make a simple sleep lag so my objects apear to be following a leader object.
Followtheleader.cs(13,51): error CS1501: No overload for method Slerp' takes 2’ arguments

using UnityEngine;
using System.Collections;

public class Followtheleader : MonoBehaviour {

	public GameObject Leader;
	public float LerpLag  = 0f;


	public void Update (){
		Vector3 Leaderposition = Leader.transform.position;
		float  Lerptime = (Time.deltaTime * LerpLag);
		this.transform.position = Vector3.Slerp(Leaderposition, Lerptime);
	}

}

So close!

You’re going to want to use the syntax:

this.transform.position = Vector3.Slerp(transform.position,Leaderposition,Time.deltaTime);

For lerp, you need to supply 3 parameters instead of two :slight_smile:

Good luck!