So I have an ObjectContainer3D with a few models inside it. It’s located at 0,0,0 and will never move. I would like to be able to do non gimbal-locked rotations to it based on mouse dragging.
Is there an easy way to convert x and y mouse movement to non gimbal-locked rotation of said ObjectContainer3D? I’ve seen a few posts where people use a simple Matrix3D transformation like this:
var matrix:Matrix3D = box.matrix;
matrix.appendRotation(deltaX,new Vector3D(0,0,1));
matrix.appendRotation(-deltaY,new Vector3D(1,0,0));
box.matrix = matrix;
The problem is, ObjectContainer3D doesn’t have a matrix property, so I cant use this solution. Or can I? Anyone know?