How to move a object from A to B in a direct line in C#

I am trying to move a object from e.g (0, 3.5) to (3, -6) in a direct line.
right now it goes to the right and down, but not in a clear line, it gets to x(3) way before it’s at y(-6) and it dosen’t look good :frowning:
Help pls

@EZL1190

It sounds like making use of Linear Interpolation might be your best bet. You can lerp the object from it’s start point to the end point and it should do it in a clear line to the target. Check out:

Vector3.lerp - Unity Scripting API

Lerp Like a Pro - Chico

Vector3.Lerp - Tutorial