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

Method create_splash

Engine/source/afx/afxMagicMissile.cpp:1758–1775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1756// private:
1757
1758void afxMagicMissile::create_splash(const Point3F& pos)
1759{
1760 if (!mDataBlock || !mDataBlock->splash)
1761 return;
1762
1763 MatrixF xfm = getTransform();
1764 xfm.setPosition(pos);
1765
1766 Splash* splash = new Splash();
1767 splash->onNewDataBlock(mDataBlock->splash, false);
1768 splash->setTransform(xfm);
1769 splash->setInitialState(xfm.getPosition(), Point3F(0.0, 0.0, 1.0));
1770 if (!splash->registerObject())
1771 {
1772 delete splash;
1773 splash = NULL;
1774 }
1775}
1776
1777void afxMagicMissile::get_launch_constraint_data(Point3F& pos, Point3F& vel)
1778{

Callers

nothing calls this directly

Calls 7

Point3FClass · 0.50
setPositionMethod · 0.45
onNewDataBlockMethod · 0.45
setTransformMethod · 0.45
setInitialStateMethod · 0.45
getPositionMethod · 0.45
registerObjectMethod · 0.45

Tested by

no test coverage detected