When the player picks up a new blade in my game I want it to smoothly move to the players current blade and replace it in like half a second. How can I do this with keeping the smoothness no matter the distance and making sure the extra blade gets to the current blade in half a second?
You can use Vector3.MoveTowards
Or use DOTween or LeanTween…
I am using DOTween for most things in my game, the problem is that blade the player is using is always moving so the extra blade is gonna be moved to an old position.
Perhaps move the localPosition of the blade instead. I say that with no direct knowledge if DOTween can do that or not and I am going to leave that as an exercise to the reader. ![]()
I ended up using Vector3.MoveTowards even though I couldn’t figure out how to make sure the extra blade always gets to the player in time but that’s just too much work for such a small feature. But thanks for the suggestion anyway.
1 Like