is the check for visibility, but it could only work for the node itself, not for its' children.
file CSceneCollisionManager.cpp
Code: Select all
if (selector && current->isVisible() &&
(noDebugObjects ? !current->isDebugObject() : true) &&
(bits==0 || (bits != 0 && (current->getID() & bits))))
found it already?
We just need to use the isTrulyVisible function here and if not dont call the recursive
function, because any af its children would not be visible.