Hey
I'm trying to pick tiles that I have drawn from the screen coords, the actual picking works fine now ( I had a few probs before, posted a while back ) but my problem now is what to do with the node that is returned. I've done a Typedef MapTile, which includes the map tile X, Y and Z coords, whether the tile is passable etc. for pathfinding and a pointer to ISceneNode.
Does anyone know a quick way I can get the Typedef object from the pointer to ISceneNode? I know 2 ways I can do it, but my picking is inside the while loop and my methods involve for loops. Not good when I have a 40 x 40 map that is bound to get bigger.