[Closed] [SDK] GetInterface() on BaseObject instead of node?
Hi,
I am a bit confused.
To get the handle to the picked object I am using this routine:
INode* picked_source_node;
Object* picked_source_obj = picked_source_node->EvalWorldState(_t, TRUE).obj;
// to get the particle flow interface I am using:
IParticleObjectExt* picked_source_epobj = (IParticleObjectExt*)picked_source_obj->GetInterface(PARTICLEOBJECTEXT_INTERFACE);
Ok… and now the problem. I was speaking with Tyson Ibele (the creator of Particle Flow and tyFlow), beacause I wanted to use His new tyFlow particle system as IParticleObjectExt.
The above routine doesn’t work, Tyson told me that I should use GetInterface() on BaseObject instead od node… but I don’t actually get it… Doeas somebody know how to change it?
Thanks in advance!
Object* obj = Get_Object_Or_XRef_BaseObject(node->GetObjectRef());
it must be enough
Thanks for reply, I tried that solution but nothing happend, Did I do it right?
IParticleObjectExt* picked_source_epobj = (IParticleObjectExt*)Get_Object_Or_XRef_BaseObject(picked_source_node->GetObjectRef())->GetInterface(PARTICLEOBJECTEXT_INTERFACE);
Ok… the problem was that Tyson Ibele tyFlow identifies as GEOMOBJECT_CLASS_ID not particles, so nothing was calculating as it should, everything was ok the routine from the first post was ok, and Yours was also thanks