Paths in Torque X
by Matthew Baxter · in Torque X 2D · 09/13/2007 (4:17 am) · 3 replies
Hi,
I was wondering how you would create paths in Torque X Builder. In Torque Game Builder under Create then Other there is an easy way to create a Path. What would be the best way to do something similar in TXB now? Are Paths going to be added to TXB in the future?
Thanks
I was wondering how you would create paths in Torque X Builder. In Torque Game Builder under Create then Other there is an easy way to create a Path. What would be the best way to do something similar in TXB now? Are Paths going to be added to TXB in the future?
Thanks
Associate James Ford
Sickhead Games
Well, off the top of my head, you could make a PathComponent, which has a List
In TGB paths are actually their own objects and the positions in the path are in object space, so you cam move the path around and it moves all the path nodes. If you wanted you could make the points specified in the path relative to the position of its owner, but I think that would get more confusing than helpful.
You can add properties like "Loop" or even delagates triggered "onNodeArrival" and "onPathFinished". It would be a pretty cool little resource actually. Unfortunately, theres no way to visually setup the path, you would have to just type in the positions (or create a black sceneobject and move it around to the positions you want copy and pasting its position).