Add support for 3D rotations