How to find a point on a line?

I want to find a point “destination” that’s “x” units from the gameObject towards an “engineer”. I tried the solutions from various posts but these are all pretty old (2010 and 2012) and I keep getting errors with all of them.
One I tried was:Vector3 destination= Vector3.Lerp(transform.position, engineer.transform.position , 2 / (transform.position - engineer.transform.position).Length())

Here the error was with “Length” - Vector3 does not contain a definition for Length…

You would use Vector3.magnitude to get a vector’s “length”. But your calculation is confused anyway, and there’s a function MoveTowards that gives you exactly what you’re after.

`Vector3 destination= Vector3.MoveTowards(transform.position, engineer.transform.position , x);`

Big thanks. Works perfectly!