Jump to content

[SOLVED] Function WorldTrigger::setTargetTypes() causes an error.


photo

Recommended Posts

Posted

Hi all.

We are using new function WorldTrigger::setTargetTypes() and headed a problem with it.

 

We use next code:

int nodeTypes[] = ( ::NODE_OBJECT_MESH, ::NODE_PLAYER_ACTOR );

shapeTrigger.setTargetTypes(nodeTypes);

it works great, but when we try to reload world or close engine we always get an error:

 

10:33:42 engine\world\worlds\WorldTrigger.cpp:258: Assertion: 'isTargetNode(node) && "WorldTrigger::removeNode(): is not a target node"'

  • 1 year later...
Posted

Hi Andrey, I had the exact same problem today and found this thread. I can confirm that setTargetType() function is causing this, most probably the parameter passed into it. Can you post a sample code of using this function? Couldn't find one in the sdk samples. Thanks.

Posted

It is Jan-2014 version. Also, this error occurs only in debug mode.

×
×
  • Create New...