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

Method Explosion

Engine/source/T3D/fx/explosion.cpp:919–947  ·  view source on GitHub ↗

-------------------------------------------------------------------------- --------------------------------------

Source from the content-addressed store, hash-verified

917//--------------------------------------
918//
919Explosion::Explosion()
920 : mDataBlock( NULL )
921{
922 mTypeMask |= ExplosionObjectType | LightObjectType;
923
924 mExplosionInstance = NULL;
925 mExplosionThread = NULL;
926
927 dMemset( mEmitterList, 0, sizeof( mEmitterList ) );
928 mMainEmitter = NULL;
929
930 mFade = 1;
931 mDelayMS = 0;
932 mCurrMS = 0;
933 mEndingMS = 1000;
934 mActive = false;
935 mCollideType = 0;
936
937 mInitialNormal.set( 0.0f, 0.0f, 1.0f );
938 mRandAngle = sgRandom.randF( 0.0f, 1.0f ) * M_PI_F * 2.0f;
939 mLight = LIGHTMGR->createLightInfo();
940
941 mNetFlags.set( IsGhost );
942 ss_object = 0;
943 ss_index = 0;
944 mDataBlock = 0;
945 soundProfile_clone = 0;
946 mRandomVal = 0;
947}
948
949Explosion::~Explosion()
950{

Callers

nothing calls this directly

Calls 4

randFMethod · 0.80
createLightInfoMethod · 0.80
dMemsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected