Mount item to object?
by Charlie Higdon · in Technical Issues · 05/19/2008 (8:44 pm) · 2 replies
I'm a little confused as to where to start working on my next objective. I'll try to explain it as briefly as possible. I'm not looking for any code just a suggestion. Hopefully it'll make sense in a moment.
I want to be able to pick up an object, and mount it to another object, an object that for the most part will be stationary. The purpose of this is to provide a type of armor to the object via the item I mount to it. I would like to have the option of removing the item I mount to it as well.
Would something like this work?
Picking up the scrap of metal (dts object) and attaching it to a mount point on
the television (dts object) to protect it from attack by the evil underpants gnomes.
Could it then be removed if i decided, ah heck let them destroy it?
Could that be scripted, or would it require engine modding?
Stupid idea perhaps. Again, not looking for any kind of code, just a suggestion on how to get started. I've tried searching "mount dts to dts" I usually wind up with instructions on how to mount a player to a seat, or weapon to a player. I want to mount an item i pick up, to an item in game, neither are players or bots.
I want to be able to pick up an object, and mount it to another object, an object that for the most part will be stationary. The purpose of this is to provide a type of armor to the object via the item I mount to it. I would like to have the option of removing the item I mount to it as well.
Would something like this work?
Picking up the scrap of metal (dts object) and attaching it to a mount point on
the television (dts object) to protect it from attack by the evil underpants gnomes.
Could it then be removed if i decided, ah heck let them destroy it?
Could that be scripted, or would it require engine modding?
Stupid idea perhaps. Again, not looking for any kind of code, just a suggestion on how to get started. I've tried searching "mount dts to dts" I usually wind up with instructions on how to mount a player to a seat, or weapon to a player. I want to mount an item i pick up, to an item in game, neither are players or bots.
About the author
Torque 3D Owner Nicolas Buquet
The object that will be used as an accessory should have a dummy node called 'mountPoint'.
The object that will act as a support must have dummy(ies) called 'mount0' to 'mount31'.
But it seems that for the accessory object, the 'mountPoint' node is not used, but the center of the object ( boudnig box ?) is used instead.
And then, you can unmount the object with the 'unmount' TorqueScript command.
You can mount multiple objects on one objects, or chain the mounting of objects with this method.
Nicolas Buquet
www.buquet-net.com/cv/