Game Development Community

How a tank would fire a projectile

by Joseph DeGol · in Artist Corner · 02/14/2008 (4:40 pm) · 2 replies

Okay so I modeled a tank and have it my game as the player, I was wondering however if there is a way to make it shoot off projectiles without attacking a weapon to it; or if it would be better to make the turret the weapon and just parent it as it loads, the only thing I was wondering about parenting at runtime would be how to specifiy where on the tank the turret would go and if this was done somehow within the exporting/modeling process?

#1
02/14/2008 (4:43 pm)
Look on the TDN (Documentation -> Torque Developer Network in the site navigation) and look at the art documentation. Weapon mounting is traditionally done via "mount" nodes (basically nodes you add to the skeleton of your model that are used to mount things to, like weapons or clothing).
#2
02/18/2008 (8:21 am)
You might want to look into the turret resource: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5345

It'll allow your tank turret to move around and aim while on your tank, among other things.