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

Method addNodeFromField

Engine/source/environment/river.cpp:676–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676bool River::addNodeFromField( void *object, const char *index, const char *data )
677{
678 River *pObj = static_cast<River*>(object);
679
680 //if ( !pObj->isProperlyAdded() )
681 //{
682 F32 x,y,z,width,depth;
683 VectorF normal;
684 U32 result = dSscanf( data, "%f %f %f %f %f %f %f %f", &x, &y, &z, &width, &depth, &normal.x, &normal.y, &normal.z );
685 if ( result == 8 )
686 pObj->_addNode( Point3F(x,y,z), width, depth, normal );
687 //}
688
689 return false;
690}
691
692bool River::onAdd()
693{

Callers

nothing calls this directly

Calls 3

dSscanfFunction · 0.85
Point3FClass · 0.50
_addNodeMethod · 0.45

Tested by

no test coverage detected