My GameObject (say a cart) is moving along in some direction and at some point it needs to move in from p1 to p2, (the red spots in the picture linked below, each element) in an arch like fashion and not just straight. Like a turn 45 degree turn in the road, alt text (the game is in 3d). Top view of the movement
The available information I have is the following:
startPos (Vector3),
endPos (Vector3),
Angle in degree, I know how many degrees the turn is supposed to be. it will be 15 / 30 / 45.
Radius of the curve is 2.5
So far I have only been able to move it straight. I'm using Vector.Lerp
. My math mind sucks, but I was thinking that maybe I could divide the curve into smaller bits and then just move straight between those?