iT2D 1.2 / iTGB 1.7.4 - t2dPath object nodes in incorrect order
by Richard Skala · in iTorque 2D · 05/27/2010 (1:32 pm) · 0 replies
Build: iT2D 1.2 / iTGB 1.7.4
Platform: MacOSX 10.6.3 (iTGB)
Target: Running on iPod Touch or iPhone 3GS
Issues:
When creating t2dPath objects in the TGB editor and placing nodes, the order of the nodes is often incorrect, and there is also no way to rearrange the nodes or even see what order they are in. Therefore, path following of attached objects is unpredictable and unreliable.
A forum post has previously been created regarding this issue:
http://www.torquepowered.com/community/forums/viewthread/115783
Steps to Repeat:
1. Run iTGB editor.
2. Create a Path.
3a. Place some nodes in desired order.
3b. Notice that you cannot reorder or modify nodes (aside from adding/deleting).
3c. Notice that you cannot attach an object to a path in the iTGB editor to test.
4. Run game on iPhone.
5. Attach some object to the t2dPath in the code using something like this:
pathPtr->attachObject( objectToAttach, 32.0f, 1, false, 0, numNodes-1, T2D_PATH_WRAP, 1, true );
6. Notice that the attached object will most likely not travel the path in the order that the nodes were created in.
About the author
Founded in 2009, Pixel Vandals Inc. is focused on bringing fun, fresh, and new ideas to the iPhone. www.pixelvandals.com www.pixelvandals.com/vineking