MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getRenderMuzzleVector

Method getRenderMuzzleVector

Engine/source/T3D/shapeImage.cpp:1824–1842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822
1823
1824void ShapeBase::getRenderMuzzleVector(U32 imageSlot,VectorF* vec)
1825{
1826 MatrixF mat;
1827 getRenderMuzzleTransform(imageSlot,&mat);
1828
1829 GameConnection * gc = getControllingClient();
1830 if (gc && !gc->isAIControlled())
1831 {
1832 MountedImage& image = mMountedImageList[imageSlot];
1833
1834 bool fp = gc->isFirstPerson();
1835 if ((fp && image.dataBlock->correctMuzzleVector) ||
1836 (!fp && image.dataBlock->correctMuzzleVectorTP))
1837 if (getCorrectedAim(mat, vec))
1838 return;
1839 }
1840
1841 mat.getColumn(1,vec);
1842}
1843
1844void ShapeBase::getRenderMuzzlePoint(U32 imageSlot,Point3F* pos)
1845{

Callers

nothing calls this directly

Calls 3

getColumnMethod · 0.80
isAIControlledMethod · 0.45
isFirstPersonMethod · 0.45

Tested by

no test coverage detected