Probably a stupid question ahead (im sure i learnt this in school but have since forgotten):
Is there a way to find a point on a line given how far you want to move down it...
I need to move the agent towards the target position at say 4 pixels a turn, preferably in a straight line.
I had a ratio sum (using the difference between the current position and the target position to divide up the 4 pixels per axis) which works but the players run in curves not straight lines.
Any help greatly appriciated, mocking also welcome.
Is there a way to find a point on a line given how far you want to move down it...
I need to move the agent towards the target position at say 4 pixels a turn, preferably in a straight line.
I had a ratio sum (using the difference between the current position and the target position to divide up the 4 pixels per axis) which works but the players run in curves not straight lines.
Any help greatly appriciated, mocking also welcome.