Looking for opinions on a grapple
by Andrew Wiblemo · in Torque 3D Professional · 09/17/2011 (3:52 pm) · 1 replies
Ok, I've finally successfully ported my grapple code from TGE1.5 to T3D1.1
Only had a minor problem with the engine code (grapple never worked, till I noticed I was compiling DEBUG but running release...), and the scripting only needed a bit of a rewrite (projectiles don't keep a reference to the firing player anymore?).
So two questions:
1: Current code uses two variables (line length and the anchor point object ID) though I plan on adding a couple more. Should I just keep exposing these to the script raw, or protect them behind a couple functions?
2: I'm considering moving the variables up the class structure so other objects could have the two movement tweaks it applies (hard line movement limit and a bungie effect). Should I toss it all into shapebase or gamebase and make it available to all objects, or port it as needed to specific implementations and save the bandwidth?
Only had a minor problem with the engine code (grapple never worked, till I noticed I was compiling DEBUG but running release...), and the scripting only needed a bit of a rewrite (projectiles don't keep a reference to the firing player anymore?).
So two questions:
1: Current code uses two variables (line length and the anchor point object ID) though I plan on adding a couple more. Should I just keep exposing these to the script raw, or protect them behind a couple functions?
2: I'm considering moving the variables up the class structure so other objects could have the two movement tweaks it applies (hard line movement limit and a bungie effect). Should I toss it all into shapebase or gamebase and make it available to all objects, or port it as needed to specific implementations and save the bandwidth?
About the author
Torque Owner Nathan Martin
TRON 2001 Network
About that very problem/subject see my comment regarding the correct fix which is just a few changes to the vanilla torquescripts provided by Torque 3D at www.garagegames.com/community/forums/viewthread/124906/1#comment-801901
Be sure to scroll down to my followup comment for clarification if my first post confused you a bit. I really hope GG does fix it in the 1.2 release. :)