Game Development Community

Ingame Node Rotation

by Arland (Barry) Woodham · in Torque Game Engine · 01/09/2005 (5:46 pm) · 1 replies

Ok this is probably simplier than I am trying to make it out to be but he goes. I have a vehicle and I have mounted a shape ontop of it. By rotating the mount point in milkshape and re-exporting the vehicle I can change the angle of the shape. What I want to do is in the code be able to rotate the node by keypress of mouse movement. I believe this is done in player.cc for the animation of the head movement for the orc but when I look at the code I am uncertain of what exactly controls what. As a result I do not know what needs to be copied to wheeledvehicle.cc

Basically I want a piece of code that allows me to change the rotation of the node while ingame. I am willing to write the code myself I just do not understand the commands and variables located in player.cc

Also I have looked at the turret code and it is much more than what I need and not suited to implementation when all I need it the rotation of one node.

#1
01/10/2005 (7:21 am)
I beleive there is a head turning resource and/or a torso turning resource... might be a good idea to look those up

edit:Torso Twist - www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6713