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

Method setControllingObject

Engine/source/T3D/shapeBase.cpp:1435–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433}
1434
1435void ShapeBase::setControllingObject(ShapeBase* obj)
1436{
1437 if (obj) {
1438 setProcessTick(false);
1439 // Even though we don't processTick, we still need to
1440 // process after the controller in case anyone is mounted
1441 // on this object.
1442 processAfter(obj);
1443 }
1444 else {
1445 setProcessTick(true);
1446 clearProcessAfter();
1447 // Catch the case of the controlling object actually
1448 // mounted on this object.
1449 if (mControllingObject->mMount.object == this)
1450 mControllingObject->processAfter(this);
1451 }
1452 mControllingObject = obj;
1453}
1454
1455ShapeBase* ShapeBase::getControlObject()
1456{

Callers 1

setControlObjectMethod · 0.80

Calls 1

processAfterMethod · 0.45

Tested by

no test coverage detected