Game Development Community

Bone control

by Martin Wareham · in Torque Game Engine · 05/04/2005 (4:58 pm) · 3 replies

I would like to control a certain bone in a mesh via key strokes, i.e. rotate a certain part of a mesh associated with a bone/node in real time. Is there a way of finding a bone name from my object ID so I can then start to transform it (rotate, translate e.t.c.).

Thanks.

Martin

#1
05/06/2005 (8:59 pm)
Hmm, perhaps adding an animation thread that rotates the particular bone? Do you neen to just 'rotate it' or do you need to rrotate it 'x degrees'
#2
05/07/2005 (12:07 am)
There's an array in the TS code that stores all the nodes; I've had good luck manipulating it directly. There's also support for callbacks and some other things. Do a bit of reading, you'll find it. :)
#3
05/07/2005 (7:31 am)
The custom shape mod allows you to find a bone, and scale it... I'm sure adding the ability to rotate wouldn't be too much more difficult to add.