Chapter 5: Bringing Textures to Life: GameObject

GameObject is the primary entity structure used to represent all interactive objects in a game, from player characters to enemies or interactive environment elements. It comprises both static and dynamic properties.

  • texture_manager_anim: Handles the animation of the GameObject, controlling the visual representation.

  • position: The current position of the GameObject within the game world.

  • collider: A geometric shape representing the GameObject's physical presence for collision detection.

  • rigid_body: Contains physical properties such as mass, velocity, and acceleration to facilitate physics-based movement and interaction.

  • behaviour_tree_node: It is used for implementing complex AI behaviour.

Last updated