Rewrite Transform to use raw pointers for scene tree