I don't know how to control render time

As titile.
I want to create a 3D modal like Rubik’s Cube.
i use WebGLRenderer.
Then ,i want to rotate a layer of the cube.
1.I create a three.group and add all cell cube in the layer to group.
2.rotate the group.
3.add all group children back to scene.
but nothing rotate.
4.render.

i checked console.log the group.
i find when step2(rotate the group.), the group’s children is empty.
maybe i render in wrong time?
and render is a asynchronous method?

Thanks all.

try this:

1.I create a three.group and add it to the scene. Permanently.
2. all cell cube in the layer to group. Also permanently.

In an animation loop:

1.rotate the group.
2.render.

Children can only have one parent, if you add cubes to the scene, they are no longer a part of the group, so rotating the group won’t do anything to them.