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

Method attachChildAt

Engine/source/scene/sceneObject.cpp:1792–1802  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1790
1791//----------------------------------------------------------
1792bool
1793SceneObject::attachChildAt(SceneObject *subObject, MatrixF atThisOffset, S32 node)
1794{
1795 AssertFatal(subObject, "attaching a null subObject");
1796 AssertFatal(!isChildOf(subObject), "cyclic attachChild()");
1797 bool b = subObject->attachToParent(this, &atThisOffset, node);
1798 if (!b)
1799 return false;
1800
1801 return true;
1802}
1803
1804//----------------------------------------------------------
1805bool

Callers 1

sceneObject.cppFile · 0.80

Calls 2

attachToParentMethod · 0.80
setColumnMethod · 0.80

Tested by

no test coverage detected