Hi all;
was working on a train factory about half a year ago, and was wondering if I could request two new features:
1. A way to properly link train cars. I tried almost all unit behaviours and nothing worked, so I was wondering If someone could make this happen.
2. A way to make trains follow tracks. Also i need a way to make tracks auto detect position and join together automatically.
Thanks!
A few things for trains
Moderator: Moderators
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: A few things for trains
This part, you can do with a lua gadget and Spring.Get/SetUnitPositionAlso i need a way to make tracks auto detect position and join together automatically.
Afaics (1) is also possible with a gadget and MoveCtrl - viewtopic.php?t=34368#p575552 - but making trains follow your tracks may be harder if you want to integrate it with pathing etc.
Re: A few things for trains
A properly linked train equals rope physix, with the pieces of the rope beeing rigid. You can try to implement this in lua via move-ctrl but its going to be alot of work.
http://nehe.gamedev.net/tutorial/rope_physics/17006/
i made trainanimations.. as in one unit, having several pieces, animated as a train..
you could add s44 boat turrets for collision spheres.. its a hack
but its way better when it comes to working
http://nehe.gamedev.net/tutorial/rope_physics/17006/
i made trainanimations.. as in one unit, having several pieces, animated as a train..
you could add s44 boat turrets for collision spheres.. its a hack
but its way better when it comes to working