Game Development Community

Smooth aiming animation

by Andre Lind · in Torque Game Builder · 10/16/2006 (4:57 am) · 1 replies

Hi,

I'm trying to get my character to aim at the mousepointer a' la Abuse.
I've got the aiming working correctly using only setRotation on the weapon, but it's of course only rotating around th mount point...

Now I would like the animation to look nicer, i.e it should foolow a nice path
Can this be done with a t2dpath? Or should I try to write a custom path class?

I figured a t2dpath mounted on the char. could work, but will I have to add a node for every single point i can aim at or can I stop the move before it has reached its endNode?

Grateful for any input!

Andr

#1
10/16/2006 (5:32 pm)
Have you tried just offsetting the graphic of the weapon so it pivots more like you want?