Game Development Community

t2dPath object Manipulation

by Mardeuce · in Torque Game Builder · 03/30/2009 (10:58 pm) · 0 replies

How would one go about dynamic path creation (i.e. creating paths with script as necessary) and manipulating separate objects using the onReachNode method?
I initially approached this dilemna using a single path for two objects of different classes mounted on to separate nodes of the same path. However, the onReachNode callback which spawns from the t2dPath class object affects both of the classes with the same callback when I want the two objects to act independently. I tried creating separate paths for each of them to move on, however, the result remained the same.
If possible could anyone assist me with what code I may use to manipulate multiple objects on a path(s), also what function/method may be used to stop an object from moving upon reaching a new node