Hey all,
Sorry to bother everyone yet again but I was attempting to use the Chessboard tutorial to determine what objects the mouse is pointing to and I came across this;
#Set the model itself to be collideable with the ray. If this model was
#any more complex than a single polygon, you should set up a collision
#sphere around it instead. But for single polygons this works fine.
self.squares[i].find("**/polygon").node().setIntoCollideMask(
BitMask32.bit(1))
#Set a tag on the square's node so we can look up what square this is
#later during the collision pass
self.squares[i].find("**/polygon").node().setTag('square', str(i))
I want to see what hex the mouse is over and my hexes are more then a single polygon so I was wondering how to modify this code block to use a collision sphere instead.
Thanks,
Sammual