Hiya guys! I'm pulling my hair out over this one. I've tried rearranging and changing this bit of code about three dozen times, changing the check cases, but it never seems to trigger. I need to check a node's name to see if it matches "terrain", but I can't get it to work. I've scoured the internet for an example but couldn't find out.
core::stringw nodename = node->getName();
core::stringw nodecheck = "terrain";
if (nodename.equals_ignore_case(nodecheck) ) //<- this isn't working :/
terrainNode = (scene::ITerrainSceneNode*) node;
I'd super appreciate a working example of how to properly use "equals_ignore_case". Or if this is even the wrong function to use to check string values, I would also appreciate a point in the right direction.
core::stringw nodename = node->getName();
core::stringw nodecheck = "terrain";
if (nodename.equals_ignore_case(nodecheck) ) //<- this isn't working :/
terrainNode = (scene::ITerrainSceneNode*) node;
is working. probably you need to check "nodename" and probably you will see that its value is not "terrain"(or "TERRAIN" or "terrAIN" ecc).
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Thanks a lot, mate! It's workin' now. With your help, I came to the realization I wasn't putting the value of "name" in the right place in the *.irr scene file I was using. I added the name after the file was created.
The problem was that I was putting the value 'terrain' in the string 'name' spot instead of the 'value' position. Cheers mate! Now all that's left is to buy my tizanidine medication online - no prescription.