How to rotate an object in world space coordinates?
tshaq80_752a50b069
Posts: 35
It seems like an object's YRotControl is used to rotate it in its local coordinate system. How can I rotate an object in world coordinate system? Looks like I can get its world rotation as a DzQuat, but not sure how to rotate it (e.g. rotate by 90 degrees).
Comments
I am told
DzNode::getWSRot(), DzNode::setWSRot()
Never mind I figured it out. Simply create a quaternion with y axis and multiply it.