This doesn't specifically relate to MMF2 but it relates to coding and this is the community forum, after all.
I need help with how to go about moving an object in a straight line towards a point in a 3D enviornment, like going from (1,7,4) to (45,3,62) where the Y value is the height off the ground. So far I can find an angle on the XZ plane, but now where am I suppost to go? Any and all help appriciated.
So far I have code that is similar to this: (though the syntax is compltely different because it is for a game I play)
XZ_Dir = atan2(( Target X Position - Current X Position ), ( Current Z Position - Target Z Position ))*-1
So I need to know how to go about this, because I haven't ever tried much outside of 2D.
Thanks,
-LB