Page 2 of 2
Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 8:15 am
by robmar
That would work, but a bit of a hack!

Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 9:33 am
by CuteAlien
Yes, that would have allowed to hack around it. And certainly one could work with ID's. But I couldn't figure out a reason that it behaved like it did, so I suppose changing it was better.
Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 12:44 pm
by robmar
So IYO the correct solution is to add the function isVisible to ICameraSceneNode so that it simply returns false?
I had changed the ISceneNode root class function to check if it was a camera node, but then that impacts all classes derived from it, which is a slight extra overhead on all nodes.
Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 1:24 pm
by CuteAlien
I won't stop you from doing that - might work for your case. But my solution was to change the boundingbox and the collision code. You can update to new svn if you want to use that.
Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 2:17 pm
by robmar
Okay, that sounds good. I always have a problem finding these patches in the SVN, its like a back hole for me! Any chance of a link to the new source?
Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 2:34 pm
by CuteAlien
This patch is here:
https://sourceforge.net/p/irrlicht/code/5094/
It also contains a bunch of spelling fixes and adapting of the tests.
The changes that matter are CCameraSceneNode.cpp, CCameraSceneNode.h and CSceneCollisionManager.cpp
Or check-out svn trunk itself and work with that.
Re: [fixed]Cameras showing up in collisions
Posted: Mon Apr 20, 2015 11:40 pm
by robmar
Thanks, I'm still using 1.7.3 so I'll just patch in those changes for now.