Added depth to Transform component
Recalculate transform only if needed