ok, i figured out how to debug :)
...and now i see something weird - if i move the mouse around on the same object, the collision returns the correct id, but occasionally it also returns -1, this causes an annoying flicker.
i see the collision example suffers from the same thing.
has this got to do with irrlicht collisions in general, or would iPhysics or iNewt behave differently?
Print selectedNode.getID()
...and now i see something weird - if i move the mouse around on the same object, the collision returns the correct id, but occasionally it also returns -1, this causes an annoying flicker.
i see the collision example suffers from the same thing.
has this got to do with irrlicht collisions in general, or would iPhysics or iNewt behave differently?