Entity

Entities are the base object for anything 3D in unbound.A plain entity is invisible, they are useful if you need a placeholder in space or in case you need to form hierarchies. Joints made in the editor are just hierarchies of entities with special tags to edit them as joints.

makeEntity()

Make a entity.

Return
Entity , a pointer to an invisible entity in the world

destroy(entity)

Destroy an entity and all the children attached to it.

Arguments
entity: Entity, a pointer to an entity in the world.

setName(entity, name)

Set the name of an entity.

Arguments
entity: Entity, a pointer to an entity in the world.
name: string

getName(entity)

Get the name of an entity.

Arguments
entity: Entity, a pointer to an entity in the world.

Return
string

addTag(entity, tag)

Add a tag to an entity.

Arguments
entity: Entity, a pointer to an entity in the world.
tag: string

removeTag(entity, tag)

Remove a tag from an entity if the tag is found.

Arguments
entity: Entity, a pointer to an entity in the world.
tag: string

hasTag(entity, tag)

Check if this entity has a tag.

Arguments
entity: Entity, a pointer to an entity in the world.
tag: string

Return
bool

getTags(entity)

Get all tags in an entity.

Arguments
entity: Entity, a pointer to an entity in the world.

Return
Table , a list of strings.

setVisible(entity, state)

Set a model to be visible or not.

Arguments
entity: Entity, a pointer to an entity in the world.
state: boolean

getVisible(entity)

Get if this model is visible or not.

Arguments
entity: Entity, a pointer to an entity in the world.

Return
bool