How to change visibility of AnimatedGroup?

Started by zbych, July 28, 2012, 04:44:03 PM

Previous topic - Next topic

zbych

Hi.

I was try to change visibility of AnimatedGroup with something like this:

animGroup.getRoot().setVisibility(false);

but it is not working. How can I change the visiblitiy of animated group? I can remove it from world but in that case I have to give lower level objects access to World object.

raft

root object is for easily moving and rotating the group.

use this:
for (Animated3D o : animatedGroup) {
    o.setVisibility(false);
}

raft

or you can use the new method AnimatedGroup.setVisibility(..)