Gets the children of the entity object.
Array
Gets the unique id of the object.
string
Gets if the object is alive.
boolean
Sets if the object is alive.
boolean
Gets if the object is loaded.
boolean
Gets if the object is visible.
boolean
Sets if the object is visible.
Gets the location matrix of the entity based on the transform.
Matrix4
Gets the name of the entity.
string
Gets the parent object of the entity or undefined if no parent.
Entity
Gets the scene that the entity is attached to.
Scene
Gets the world matrix of the entity, based on the parent matrix.
Matrix4
Adds a behaviour to the entity.
void
Adds a child entity to the current entity.
void
Adds a component to the entity.
void
Destroys the entity.
void
Kills the entity, components, behaviours and children recursively.
void
Gets the behavoiur by name from the entity.
IBehaviour
Gets the component by name from the entity.
IComponent
Gets the child entity by name from the entity.
Entity
Gets the position relative to the world of the object.
Vector3
Loads the entity and it's components.
void
Adds the scene to the entity.
void
Removes the child entity from the entity. //REVIEW: change this to by name?
void
Removes the component by name.
void
Renders the entity, components and all children recursively.
void
Unsubscribe the components, behaviours and children from all message types.
void
Updates the entity by delta and recursively called on components, behaviours and children.
void
Checks if the components, behaviours and children is ready.
void
Updates the world matrix based on the parent matrix and the local matrix.
void
Generated using TypeDoc
Class constructor.