- Add Component class documentation with lifecycle methods - Add GameObject class documentation with component system - Add TransformComponent documentation with transform methods - Add Scene class documentation with GameObject management - Add SceneManager singleton documentation with scene loading - Update components.md overview with all component classes - Update main.md navigation with Scene module
400 B
400 B
Update
Update all GameObjects in this scene.
Syntax
void Update(float deltaTime);
Parameters
deltaTime- The time elapsed since the last frame in seconds.
Remarks
Calls Update on all GameObjects and their components. This is typically called once per frame from the main game loop.
Examples
void Example(Scene* scene) {
scene->Update(0.016f);
}