[fixed]Cameras showing up in collisions
Re: [fixed]Cameras showing up in collisions
That would work, but a bit of a hack!
Re: [fixed]Cameras showing up in collisions
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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: [fixed]Cameras showing up in collisions
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.
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
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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: [fixed]Cameras showing up in collisions
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
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.
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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: [fixed]Cameras showing up in collisions
Thanks, I'm still using 1.7.3 so I'll just patch in those changes for now.