VEGO-Engine  0.1
Loading...
Searching...
No Matches
TransformComponent Class Reference

Adds a transform to an entity when added via entity.addComponent() More...

#include <TransformComponent.h>

Public Member Functions

 TransformComponent (int scale=1)
 

Detailed Description

Adds a transform to an entity when added via entity.addComponent()

The transform component is responsible for the position, direction and size of an entity. It is used to move the entity in the game world and to determine its size and position on the screen.

Constructor & Destructor Documentation

◆ TransformComponent()

TransformComponent::TransformComponent ( int scale = 1)
explicit
Attention
in order to allow an entity to move the stat "speed" must be set in the DataComponent (written exactly like that and set to any positive int value, 0 will lead to no movement, negative numbers to backwards movement)

The documentation for this class was generated from the following files: