changed getTransform() to return world transform