Reference Scene Graph

Move a scene-graph entity by setting its transform's translation — slide a platf

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.

Move any entity by setting its transform's translation.

Platform : entity = SomeEntity
Current := Platform.GetTransform()
NewSpot := vector3{X := 500.0, Y := 0.0, Z := 200.0}
Moved := transform{Translation := NewSpot, Rotation := Current.Rotation, Scale := Current.Scale}
Platform.SetGlobalTransform(Moved)

Takeaway — New Translation in the transform = new position.

Build your own lesson with scene_graph_move_entity

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 →