I have a "Door" class object I made, which has an ISceneNode member called "block". Block is the physical manifestation of the door. I need the door to run its "Open" function when it is clicked on.
I am using "getSceneNodeFromScreenCoordinatesBB" and a crosshair so that the user can aim at a door on the other side of the room and open it.
However, getSceneNodeblah returns block. I need to be able to reference the door object that holds block, not block itself. Any suggestions on how I would do that?