Game Development Community

Weapon Fire Vector

by Derk Adams · in Torque Game Engine · 10/20/2004 (7:17 pm) · 2 replies

Greetings,

I am trying to find the area of code that sets up the weapon firing vector. I want it to use the head orientation (mHead) instead of the body rotation (mRot). Can anyone point me to the right area?

Thanks.

#1
10/20/2004 (7:26 pm)
ShapeBase::getMuzzleVector in shapeImage.cc

edit:

Follow to ShapeBase::getCorrectedAim
#2
10/20/2004 (8:57 pm)
Westy,

Thanks. That got me started and led me to Player::getMuzzleTransform where I was able to make my update.