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

Method Projectile

Engine/source/T3D/projectile.cpp:602–633  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

600//--------------------------------------
601//
602Projectile::Projectile()
603 : mPhysicsWorld( NULL ),
604 mDataBlock( NULL ),
605 mParticleEmitter( NULL ),
606 mParticleWaterEmitter( NULL ),
607 mSound( NULL ),
608 mCurrPosition( 0, 0, 0 ),
609 mCurrVelocity( 0, 0, 1 ),
610 mSourceObjectId( -1 ),
611 mSourceObjectSlot( -1 ),
612 mCurrTick( 0 ),
613 mProjectileShape( NULL ),
614 mActivateThread( NULL ),
615 mMaintainThread( NULL ),
616 mHasExploded( false ),
617 mFadeValue( 1.0f )
618{
619 // Todo: ScopeAlways?
620 mNetFlags.set(Ghostable);
621 mTypeMask |= ProjectileObjectType | LightObjectType | DynamicShapeObjectType;
622
623 mLight = LightManager::createLightInfo();
624 mLight->setType( LightInfo::Point );
625
626 mLightState.clear();
627 mLightState.setLightInfo( mLight );
628
629 mDataBlock = 0;
630 ignoreSourceTimeout = false;
631 dynamicCollisionMask = csmDynamicCollisionMask;
632 staticCollisionMask = csmStaticCollisionMask;
633}
634
635Projectile::~Projectile()
636{

Callers

nothing calls this directly

Calls 4

setMethod · 0.45
setTypeMethod · 0.45
clearMethod · 0.45
setLightInfoMethod · 0.45

Tested by

no test coverage detected