Beizer curves, I think are useful to draw a parabolic curve connecting any three given points. I found trig is more practical to make train negotiate curves.Quote:
Originally Posted by mr_malee
Printable View
Beizer curves, I think are useful to draw a parabolic curve connecting any three given points. I found trig is more practical to make train negotiate curves.Quote:
Originally Posted by mr_malee
Here's Senocular's bezier path class. It has an example, with fla that will show you how to orient your train along your bezier curves.
http://www.senocular.com/flash/source.php?id=0.4
The other Senocular path class is more for freehand paths, which is what I thought you wanted at first (and more along what I was thinking of).
why don't you try to creating dots right after you create the a rail, so when you're finished the train will follow the dots on top of the rails.
I don't know I may be wrong.
JerryScript, and Never_land,
These are good suggestions.
I shall try these methods.
Thanks.