Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 9th Jun 2013 17:49 Edited at: 9th Jun 2013 17:54
So I got the lanes of my track all nice, and lined up. Now the bends are wider than the straights, so I figured I would stretch the bend paths, but not the straight paths.

That means that I need to calculate a stretch routine that is different for each lane, and at the correct angle for each lane, and fading away towards the straights.

I know how to do it, but I don't know how to use vectors very well.

I need to take a vector from lane 9, that intersects lane 10, and allows lane 10 to move along the vector in a straight line compared to lane 9, 8, 7, 6, 5, 4, 3, 2, 1.

All I need to know is how to write a vector that intersects an XYZ position, and has an end point that you can change the length of. Then position lane 10 at the length of the vector, Then use the arrow keys to change the length of the vector, and move lane 10 to the new position, which will be in line with lane 9. Then I gradually half the distance between all of the lanes from lane 10 to lane 2, to get a sort of stretch effect. I wrote divide by 10, but it's not divide by 10, its progressively longer towards the ends.

Here's an image..



Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 9th Jun 2013 19:35
Actually, it is easier to turn them all 90 deg, so I will do that instead.

Login to post a reply

Server time is: 2026-07-07 07:35:29
Your offset time is: 2026-07-07 07:35:29