- Home /
Question by
dumblet · Nov 05, 2016 at 09:22 PM ·
rotationgimbal-lock
How to rotate objects using 2 different axis at the same time?
The current project i've been working on goes like this:
there's a grid of Hex tile objects. When a hex tile gets clicked, it gets pushed down and goes back up. All the hexes around it will flip 180 degrees along the axis parallel to which side they correspond to. My Hexes have a pointy top, so left and right sides just rotate z axis by 180 and -180. When it comes to top right/left or bottom right/left, i get matched with gimbal lock.
I have been using DOTween to rotate my objects. I've been looking around and i can't seem to find a work around gimbal lock
Comment