i aim getting an error called no overload for method smooth damp takes 4 arguements pls help

void UpdateMouseLook()
{
Vector2 targetMouseDelta = new Vector2 (Input.GetAxis (“Mouse X”), Input.GetAxis (“Mouse Y”));
curretMouseDelta = Vector2.SmoothDamp(curretMouseDelta, targetMouseDelta, ref curretMouseDeltaVelocity, mouseSmoothTime);
cameraPitch -=curretMouseDelta.y *mouseSensitivity;

cameraPitch = Mathf.Clamp (cameraPitch, -90f, 90f);

playerCamera.localEulerAngles = Vector3.right * cameraPitch;
transform.Rotate (Vector3.up curretMouseDelta .x mouseSensitivity);
}

here is the code

thats the docs,

any of your parameters is not right

im getting the same issue and this answer doesn’t help. im bummed and im new to unity

It does help. The docs tell you all the parameters that Unity’s API methods expect. Vector2.SmoothDamp expects six parameters, two of which are optional.

If you have an issue, post an example of your code so that we may help.

1 Like