[ODE] train
Fabian Herb
commander at herb-clan.de
Sat Oct 4 13:56:08 MST 2003
OK, it's late, but I have this idea: on straight tracks, use a slider
joint, and when entering a curved track, destroy the slider and create
a hinge joint, with the axis located at the center of the curve. When
entering the next track section, destroy the joint (or disconnect it)
and create another one etc.
Never tried this out though. Connecting multiple cars that are on the
same track will possibly lead to instabilities, but with soft cfm/erp
settings or manually adding forces to the cars, rather then connecting
them, you could work around this.
Fabian
p.s.: does the slider joint allow rotation around its axis?
<jnilson_99 at yahoo.com>:
> hi all,
>
>
> i'm trying to create a train simulation.
>
>
> my only problem is how to get the box cars to follow
> the train track?
>
> in other words, how to get each car to react to the
> acceleration/velocity of the underlying track.
>
> my immediate thought is to create the box car as an
> autonomous vehicle with the track providing a
> "pre-recorded" set of steering inputs....
>
> that is the train track (in the physics land) is just
> a bunch of preset "steering" inputs to the box car....
>
> any ideas?
>
> thanks,
>
> john
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
More information about the ODE
mailing list