AutoComponent

This component create automatic movement and rotation to game object.

Warning

This component use the TransformComponent and it can’t work without it.

Editor

In the editor, you can change the movement and the rotation with differents spins. There is also a checkbox to activate/desactivate the component.

Script

Variables

  • game_object: Object which own this component (GameObject)

  • engine: Utility class to control the game (Engine)

  • move: Movement of component (Vec2)

  • rotation: Rotation of component in degrees (integer)

  • active: True if component is active

Functions

No public function in this component.