fixed applyTransform to account for rotations - might not work with scale anymore?