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

Method Debris

Engine/source/T3D/debris.cpp:519–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519Debris::Debris()
520{
521 mTypeMask |= DebrisObjectType | DynamicShapeObjectType;
522
523 mVelocity = Point3F( 0.0f, 0.0f, 4.0f );
524 mLifetime = gRandGen.randF( 1.0f, 10.0f );
525 mLastPos = getPosition();
526 mNumBounces = gRandGen.randI( 0, 1 );
527 mSize = 2.0f;
528 mElapsedTime = 0.0f;
529 mShape = NULL;
530 mPart = NULL;
531 mDataBlock = NULL;
532 mXRotSpeed = 0.0f;
533 mZRotSpeed = 0.0f;
534 mInitialTrans.identity();
535 mRadius = 0.2f;
536 mStatic = false;
537 mElasticity = 0.5f;
538 mFriction = 0.5f;
539
540 dMemset( mEmitterList, 0, sizeof( mEmitterList ) );
541
542 // Only allocated client side.
543 mNetFlags.set( IsGhost );
544 ss_object = 0;
545 ss_index = 0;
546}
547
548Debris::~Debris()
549{

Callers

nothing calls this directly

Calls 7

getPositionFunction · 0.85
randFMethod · 0.80
randIMethod · 0.60
Point3FClass · 0.50
dMemsetFunction · 0.50
identityMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected