This is my second day taking a closer look on Jirr and it really fascinates me. It's preety cool so far.
Unfortunately I have come to a point that got me stuck.
I have been loading an irredit scene from an .irr file and would like to set camera collision processing on the loaded meshes now.
I'm orienting myself on the code seen in this thread (http://irrlicht3d.de/forum2/viewtopic.php?f=1&t=724) to recursivly add collision handlers for the meshes of the loaded irredit scene.
My problem is that there a several spots in the C++ code I cannot transfer into the Jirr Java world.
In the code you find things like these:
Code: Select all
if (node->getType() == scene::ESNT_MESH) {...}
Code: Select all
if (node->getType() == scene::ESNT_ANIMATED_MESH) {...}
Code: Select all
if (node->getType() == scene::ESNT_TERRAIN) {...}
I have tried really hard, but haven't found a way to transfer the displayed if-statements into Jirr Java code (with Jirr Enumerations for example).
Could someone please advice what to do in order to achieve the semantics of the condinitional expressions above. I would be really grateful for replies and I'm sure this is interesting not only for me.
Regards
Frank