I have a Tank and I want to rotate it's bone "Cannon" at runtime based on a virtual joystick I have created. I have been searching every where for how to manipulate bones at runtime but all google pops up is information saying that it is possible not so much how.. lol I can find the bone by using the findBone method but that returns a spBone struct which as of now I can't seem to find a way to manipulate that either. You can't run Actions on an spBone as far as I know and since it is a struct and doesn't have any methods... I'm gonna guess I can't do it. If anyone can point me in the direction to find documentation on manipulating bones programmatically I would really appreciate it!!! 🙂 :yes:
Thanks
Nvm I figured it out 🙂 I just used:
tank->findBone("Cannon")->rotation = stick->getAngleRotation();
tank->updateWorldTransform();
So much easier than how I was trying to do it!