Reference Scene Graph

A transform is an entity's position, rotation and scale in the world. Read and s

Updated
The code on this reference page is provided as-is and did not pass the latest compile check — treat the examples as a starting point and verify in your project.

Every entity carries a transform: where it is, how it's turned, how big it is.

Current : transform = Entity.GetGlobalTransform()
Pos : vector3 = Current.Translation
Print("{Pos.X}, {Pos.Y}, {Pos.Z}")
if (Entity.TeleportTo[Pos + vector3{Z := 200.0}]):
    Print("moved up!")

Takeaway — Transform = position + rotation + scale. Read it, set it, move it.

Build your own lesson with scene_graph_transforms

Generate a personalized, step-by-step lesson plan built around this object — grounded in this exact reference and our compile-verified knowledge base.

Build a lesson →