Page 1 of 1

getVisible() method for more classes

Posted: Fri Apr 11, 2008 9:11 pm
by Moohasha
The API documents several classes that have setVisible() methods, but only MoveableObjects have a getVisible() method. Why the disconnect?

Posted: Fri Apr 11, 2008 9:42 pm
by sinbad
If you're talking about SceneNode, it's because the visibility isn't on the SceneNode, it's just a shortcut for calling it on all the attached objects.

If you mean something else, please be more specific.

Posted: Wed Apr 16, 2008 4:35 pm
by Moohasha
I figured that was the case for SceneNodes, but why not also have a shortcut for calling getVisible() or all attached objectes? I understand you could have some that are visible and some that are not, so maybe return true iff all children are visible, else return false?

Posted: Thu Apr 17, 2008 11:37 am
by sinbad
Moohasha wrote:I figured that was the case for SceneNodes, but why not also have a shortcut for calling getVisible() or all attached objectes? I understand you could have some that are visible and some that are not, so maybe return true iff all children are visible, else return false?
I think that's more confusing than not providing it at all.