- Home /
How to make boogies follow a track
Hello, I have a train car with 2 boogies. I would like to make them follow right the track. Now I've used the iTween script in order to create the path and with the script rigidbody I've joined the two boogies but when I start the test, the first boogie follow the track but the second one makes the same movement of the first one. I would like that second boogie will make a curve when it begins and not when the first one begins it. Do you have some ideas? Thanks!
Answer by RetepTrun · Dec 15, 2013 at 04:00 AM
I dont know how to use itween but
If your trains are short and you dont mind using physics here's my setup for mining carts which I tried earlier with each being a boogie of a larger box attached by joints:
Each wheel is approximated with sphere with a rigidbody and a joint to let it rotate. Then, to guide the train: between the rails are 2 frictionless spheres that have physics disabled for everything except the rails. Another script makes the center of mass low between the rails. video of it: http://youtu.be/oswBUa_8k9Q?t=3m35s
Your answer
Follow this Question
Related Questions
how to calculate vector perpendicular to another and apply this to object direction? 2 Answers
Advanced collisions: mesh collision? 0 Answers
make a train follow tracks using physics 1 Answer
How do you turn object to face a particular vector ? 1 Answer
I want to make a train go round a track using physics? 7 Answers