Game Development Community

How do setting rotation on a projectile in T3d1.2?

by Szzg007 · in Torque Game Engine · 01/17/2012 (8:28 am) · 3 replies

I need make a rotation on a projectile, but I don't how can do...

So...
How setting rotation on a projectile?

I am T3d 1.2.

#1
01/18/2012 (8:48 am)
The projectileShapeName points to an art asset. That asset can, or 'used' to be able to contain 2 animation sequences.

'Activate'- sequence played immediately after instantiation

'Maintain'- sequence played immediately after 'Activate', if 'activate' is set to nonCyclic and the sequence, 'Maintain', exists in the shape.

...the takeaway is to animate it with art, it's stock projectile behavior to have 2 animations present, already coded.
#2
01/20/2012 (5:03 am)
And beyond that, you can't rotate projectiles. They automatically set their transform based on their current velocity. The code is in processTick if I remember correctly - possibly in interpolateTick also.

Also, T3D questions should probably be in T3D forums ;P.
#3
01/24/2012 (6:39 am)
OK. Thanks Rex and Daniel....