private Quaternion getRotation() { Quaternion totalrot = rot; if (parent != null) { totalrot = parent.getRotation() * rot; } mTotalRot = totalrot; rotdirty = false; return totalrot; }