MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / onAdd

Method onAdd

Engine/source/T3D/fx/fxShapeReplicator.cpp:486–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484//------------------------------------------------------------------------------
485
486bool fxShapeReplicator::onAdd()
487{
488 if(!Parent::onAdd())
489 return(false);
490
491 // Add the Replicator to the Replicator Set.
492 dynamic_cast<SimSet*>(Sim::findObject("fxReplicatorSet"))->addObject(this);
493
494 // Set Default Object Box.
495 mObjBox.minExtents.set( -0.5, -0.5, -0.5 );
496 mObjBox.maxExtents.set( 0.5, 0.5, 0.5 );
497 resetWorldBox();
498
499 // Add to Scene.
500 setRenderTransform(mObjToWorld);
501 addToScene();
502
503 // Register for notification when GhostAlways objects are done loading
504 NetConnection::smGhostAlwaysDone.notify( this, &fxShapeReplicator::onGhostAlwaysDone );
505
506 return true;
507}
508
509//------------------------------------------------------------------------------
510

Callers

nothing calls this directly

Calls 4

findObjectFunction · 0.50
addObjectMethod · 0.45
setMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected