Smooth Multiplayer Movement(Vector3.Lerp)

So everything that I have been reading tells me that I need to use Vector3.Lerp to smooth my player movement. I know it should be like:

Vector3.Lerp(transform.position, currentposition, 0.1f);

However, I don’t know how to get the “currentposition” in the above example. I have heard of OnSerializeView() but isn’t that just a Photon thing? I am not using PhotonNetworking in my game. Any help on how to get that updated position would be greatly appreciated.

EDIT:
So I tried the following:

Vector3.Lerp(this.transform.position, this.GetComponent(NetworkView).transform.position, 0.1f);

this works a little but I still get jitter. Is there a way to improve this code??

Maybe I don’t understand well what your problem is, because to my understanding you need to use target.position and not currentposition as you describe. Here “target” is the Transform of where you want to move. You could also use “target” as a Vector3 location, in which case you’d need to use just target instead of currentposition.

In any case, I understand that currentposition is actually transform.position, so, maybe I don’t understand your problem well.

Update():

transform.position = Vector3.Lerp(transform.position, target.position, 0.1f);

I have given a very in-depth explanation on this one. While pako eventually lead me to the right answer it wasn’t really producing the correct effect that I am looking for. I have given this full answer at the other question that I asked: