Game Development Community

Is there a step function?

by profmusic · in Torque Game Engine · 07/07/2008 (5:39 pm) · 2 replies

I'm searching for a way to show direction in projectiles, because I am working on a way to make them turn. In torque, is there either a variable called something like xprevious or yprevious, or is there at least a function that is called every time a projectile moves?

#1
07/07/2008 (7:57 pm)
Projectile::processTick() is the one you want. It's used to control projectile movement, so it should be a good place to start.
#2
07/08/2008 (6:47 pm)
Thanks. I'll look at it. It sounds like it should work