www.jpct.net

Bones - Skeletal and Pose Animations for jPCT/jPCT-AE => Bones => Topic started by: zbych on July 28, 2012, 04:44:03 pm

Title: How to change visibility of AnimatedGroup?
Post by: zbych on July 28, 2012, 04:44:03 pm
Hi.

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

Code: [Select]
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.
Title: Re: How to change visibility of AnimatedGroup?
Post by: raft on July 28, 2012, 05:03:28 pm
root object is for easily moving and rotating the group.

use this:
Code: [Select]
for (Animated3D o : animatedGroup) {
    o.setVisibility(false);
}
Title: Re: How to change visibility of AnimatedGroup?
Post by: raft on July 28, 2012, 06:13:13 pm
or you can use the new method AnimatedGroup.setVisibility(..)