Game Development Community

weapons mounting and firing backwards

by Michael A Bocchi · in Torque 3D Professional · 01/08/2010 (11:05 pm) · 3 replies

Can any one tell me what I have done to make my weapons mount and shoot backwards? Actually I'm not sure their mounting backwards but they are shooting backwards. I have tried this using a custom made weapon and the rocket launcher that came with Torque. Same result on both. Any ideas?

EDIT:
So if I turn correctMuzzleVector to True, it still fires backwards in 3rd person, but in 1st person it fires the right way (though much to my dismay it fires where the camera is looking...) If it is set to False (default) it fires straight back in both 3rd and 1st person views.

I do have offset and eyeoffset commented out as well.

#1
01/09/2010 (12:39 am)
CorrectMuzzleVector should fire the projectile in whichever way the eye or cam (depending on 1st or 3rd person) is pointing.

If you're using a custom model (which I guess you are) check that the nodes are pointing the correct direction.
#2
01/10/2010 (11:52 am)
Alright. It was the mount nodes on the players model, I had to rotate them 180 degrees. Now it works just fine. Thank you.
#3
01/11/2010 (2:07 pm)
what about weapons that mount 90deg off but fire straight?