how can i get all the scene node that are intersected by the ray .
irrlicth is only returning the nearest one.
collision list
The ITriangleSelector interface has a function for (getTriangles): http://irrlicht.sourceforge.net/docu/cl ... ector.html
But I'm not sure about the documentation right now. It says:
Also doesn't seem that fast.... I guess if speed is of importance I would start coding custom routines there.
But I'm not sure about the documentation right now. It says:
But I just took a quick view at the code and it seems to me rather like IMetaTriangleSelector doesn't need to be called multiple times, but will return all triangles with one call and then getSceneNodeForTriangle could be called for each returned index. Unless I'm missing here something (could be, I have no time to dig deeper right now) the documentation here is wrong.This returns all triangles for one scene node associated with this selector. If there is more than one scene node associated (e.g. for an IMetaTriangleSelector) this this function may be called multiple times to retrieve all triangles.
Also doesn't seem that fast.... I guess if speed is of importance I would start coding custom routines there.
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