Adds component of the specified type to the entity.
Parameters
- id representing component type. see Components
- variable number of arguments needed to construct particular component
Returns
- Newly addded component
Gets component of the specified type attached to the entity.
Parameters
- id representing component type. see Components
Returns
- The component
Sets the translation component of the entity's transform.
Parameters
- x coordinate
- y coordinate
- z coordinate
Gets the translation component of the entity's transform.
Returns
- x coordinate
- y coordinate
- z coordinate
Gets the scale component of the entity's transform.
Returns
- x coordinate
- y coordinate
- z coordinate
Adds to the translation component of the entity's transform.
Parameters
- x coordinate offset
- y coordinate offset
- z coordinate offset
Multiplies the scale component of the entity's transform.
Parameters
- x coordinate multiplier
- y coordinate multiplier
- z coordinate multiplier
Creates new entity.
Returns
- Newly created entity