Streaming live at 10am (PST)

3D cube rotation - how can I make the cube rotate around its center?

Hey there!

I’ve created a 3D cube using 3d transforms and I’m trying to rotate the cube around its center axis.
Basically like the example in this codepen:

In my current design this is what happens:
When I rotate the cube around the Y-axis, everything goes fine:

However, on the X-axis, it appears the the cube’s anchor point is at the top.

Any help or tips are highly appreciated. Thanks in advance

Hi @Floydvanjoost and welcome here are some recourses that may help you.

1 Like

Thanks @Stan! This is very helpful

HI @Floydvanjoost if you have got answer that solved your question feel free to mark any response as solution to close this treat as solved