I am trying to build a City Building game where I want to be able to build roads and railroads and have trains and cars follow them. I have found iTween that lets you create paths and have objects move constrained to them. But as i understand it, you don’t create these paths at run time, so you can’t do it while playing the game? Seems like it’s more for platformers then strategy.
My understanding is you can modify the path at runtime so long as you use PutOnPath() or PointOnPath() to position the object along the path. I don’t know if you’re able to create a new path at runtime though.
You could try an alternative like Curvy. Its description states it can create paths at runtime.
Ok. I’ll look those up. And path’s are just normal vector 3’s? Can i use Vector 2’s if it’s 2d? Or just leave the third zero?
Yep, you leave one of the axis (usually Z) a zero if you want 2D.