Fix CATransform3D usage and added a maxAngle parameter