Is there a way to set the anchorPoint z?

first, I’m using cocos2dx 3.3rc.

I’m rotating a object using Sprite3D,
I knew that setPosition3D can rotating object x, y, z axis.

My goal is to rotate a object by center point(x, y, z axis).
I knew that rotation point was anchor point not a pivot point in max(program).

setAnchorPoint (Vec2 (0, 0));

I used this function, so i tried to set anchor point, but couldn’t set axis z.

If there is a way to set anchor point z, then please let me know.

Thanks in advance…

Did anyone ever find an answer to this?

I have a 3D world, and I would like to rotate houses around bottom center, however my world coordinate system has Y up (as most modelling tools have). This means I can’t place my anchor point in the middle of my house, because I can’t change the Z…

somebody found solution for this?

If I understand correctly what everyone here is trying to do, what about if you create a parent node, and then add the 3D node as a child of that node at whatever distance you need from the parent node. You then apply rotations to the parent node, and the child 3D node will rotate around it.

1 Like

Yes this is what should be happening. Is it? Is something broken? I think cpp-tests has examples of this.