Lerp Vector with Curve not equal it's destination?

Using a Vector Lerp with Alpha hooked up to “Get Float Value” from a Curve(0-1), whilst this does work it never reaches exactly the destination given. Is this right?

Could you clarify what you mean by exactly? This?

image

Floating point errors are a thing. There was another question of yours asking about vector comparison, I believe. Just as with floats, you want some tolerance:

image

The first node. Just noticed that it does reach exactly, I had the loop check before setting the Actor’s location when it should be after.

Use the second with tolerance and then snap vector if necessary.

1 Like