I am not able to make full sense of getSceneNodeFromScreenCoordinatesBB function. I have no idea about how to use its second parameter. Is there anybody could give me some explanation? an example would be the best!
Thanks!
Code: Select all
virtual ISceneNode* irr::scene::ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB ( core::position2d< s32 > pos,
s32 idBitMask = 0
) [pure virtual]
Returns the scene node, which is currently visible under the overgiven screencoordinates, viewed from the currently active camera. The collision tests are done using a bounding box for each scene node.
Parameters:
pos,: Position in pixel screen coordinates, under which the returned scene node will be.
idBitMask,: Only scene nodes with an id with bits set like in this mask will be tested. If the BitMask is 0, this feature is disabled.
Taoism Forum