Rotate Sprite3D using another Sprite3D as Anchor Point

Screen Shot 2020-09-23 at 6.34.29 PM

I want to rotate the 8 cubes using the center red cube. (The top surface.) Just like a Rubik’s cube. But how do I do it? (The center red cube doesn’t have to rotate)

  • I tried adding the 8 cubes as a child to the center red cube. But if I addChild, the 8 cubes position changes, and I don’t want that.

Sorry for my bad English :frowning:

This is pretty much the same question as your other post, so the answer there still applies:

https://discuss.cocos2d-x.org/t/addchild-by-not-changing-the-position-of-the-child/51568/5

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.