So my goal is to move an object a certain amount of steps given towards a destination in unity. To be a bit more specific, I want to set a begin and end point for an object to move to. Then divide this distance by a certain amount of steps. And then when given users amount of steps move this amount of steps towards the end destination.
- to give another example, say path is from A to B. Make steps of say 100 between places. Then when given 50 as input, move 50 places towards B and stay there.
I fought to do this by making waypoints in unity, but I’m new to unity so I I’m kinda stuck. Please help me :)

Of course the are many many ways to do that, given the very vague input this would be a generic animation routine for moving an object between
startPointandendPointusing the given step parametersWhere
objthe object to move, will also be running the routinestartPointthe position to start atendPointthe theoretical target positionstepSizehow far to move per stepstepsToUseup to how many steps to usestepDurationdelay in seconds before the next stepClamping is applied so if the
endPointis already reached with less than the given steps, no more steps are done.