Game Development Community

Shooting direction

by David Tan · in Torque Game Engine · 09/22/2004 (6:00 pm) · 2 replies

Could somebody tell me how to control the direction of shooting,not alway shoot at the center of screen?thanks.

#1
09/22/2004 (6:23 pm)
You will want to modify the muzzleVector in the onFire method of your weapon.
#2
09/22/2004 (6:37 pm)
Thanks.I will try.