what means of "slot" and "offset"??
by jahid57 · in Torque 3D Public · 06/09/2011 (11:04 am) · 4 replies
bool SceneObject::mountObject ( SceneObject objB, int slot,TransformF txfm = MatrixF::Identity )
what is the parameter "slot"?
and
what have to assign when i want to mount any object on player?
and in many function there is a parameter "offset"?
what it means and what can be its value?
what is the parameter "slot"?
and
what have to assign when i want to mount any object on player?
and in many function there is a parameter "offset"?
what it means and what can be its value?
#2
is that mean some mount point like node?
then how i will set up one on player's head so that i can fit a torch Light.
and also on weapon.
06/09/2011 (1:22 pm)
"The slot is a slot on the object to which the object will mount"is that mean some mount point like node?
then how i will set up one on player's head so that i can fit a torch Light.
and also on weapon.
#3
Slot is more of a 'concept' than an actual 'location' on the object. Now it does get a 'mountPoint' assignment, which is where the confusion is setting in.
Slots also refer to 'trigger-able' objects; IE, something the Client/Player can press an input device to activate...think of them more like that and the 'mountPoint'/'Slot' confusion may begin to recede.
Please read up on the Artist Guide of the public T3D Official Documentation....your questions will be answered!
You don't need a license to browse the documentation....GO GO GO!
06/10/2011 (5:10 am)
mountPoint is the 'node'/object in the art asset, the actual 'location' of the mounting.Slot is more of a 'concept' than an actual 'location' on the object. Now it does get a 'mountPoint' assignment, which is where the confusion is setting in.
Slots also refer to 'trigger-able' objects; IE, something the Client/Player can press an input device to activate...think of them more like that and the 'mountPoint'/'Slot' confusion may begin to recede.
Please read up on the Artist Guide of the public T3D Official Documentation....your questions will be answered!
You don't need a license to browse the documentation....GO GO GO!
#4
for instance, you have objectA with a model with a node called "mount1". now you want to attach objectB to that node. you call objectA.mount(objectB,1).
in order to use slot x, the object which calls mount() must use a model with a node called "mountx". slots are used for shapebaseimages as well.
06/13/2011 (11:44 pm)
slot number corresponds to a node called "mount(number)" in the model.for instance, you have objectA with a model with a node called "mount1". now you want to attach objectB to that node. you call objectA.mount(objectB,1).
in order to use slot x, the object which calls mount() must use a model with a node called "mountx". slots are used for shapebaseimages as well.
Torque 3D Owner Ted Southard
The slot is a slot on the object to which the object will mount (which is an index), and the offset is just that, an offset transform (xyz and rotation) that the object will have which offsets its position from the position of the slot that it is mounted to. Hope that helps.