|
Lua API
0.4.0
Game Engine
|
Functions | |
| getObject (scene, name) | |
| Gets the object with the given name. More... | |
| getParent (object) | |
| Retrieves the parent of an object. More... | |
| getChilds (object) | |
| Returns a list of all childrens from the given object. More... | |
| getClone (object) | |
| Creates a clone of the given object. More... | |
| setParent (object, parent) | |
| Changes the parent of the given object. More... | |
| getName (object) | |
| Retrieves the name of the given object. More... | |
| activate (object) | |
| Activates the given object. More... | |
| deactivate (object) | |
| Deactivates the given object. More... | |
| isVisible (object) | |
| Checks if the given object is visible. More... | |
| isActive (object) | |
| Checks if the given object is active. More... | |
| enableShadow (object, shadow) | |
| Specifies, if a light renders shadows or if an entity has a shadow. More... | |
| isCastingShadow (object) | |
| Checks if a light renders shadows or if an entity has a shadow. More... | |
| activate | ( | object | ) |
Activates the given object.
| object | The object. |
| deactivate | ( | object | ) |
Deactivates the given object.
This function does not delete the object from memory! It will just set invisible and removed from the physics simulation.
| object | The object. |
| enableShadow | ( | object | , |
| shadow | |||
| ) |
Specifies, if a light renders shadows or if an entity has a shadow.
| object | The entity/light. |
| shadow | A boolean value. |
| getChilds | ( | object | ) |
Returns a list of all childrens from the given object.
| object | The parent object. |
| getClone | ( | object | ) |
Creates a clone of the given object.
| object | The object to clone. |
| getName | ( | object | ) |
Retrieves the name of the given object.
| object | The object. |
| getObject | ( | scene | , |
| name | |||
| ) |
Gets the object with the given name.
Can also give objects from other scenes than the current one.
| scene | The scene to look in. This parameter is optional. |
| name | The name of the object to retrieve. |
| getParent | ( | object | ) |
Retrieves the parent of an object.
| The | object to retrieve the parent from. See also: getObject |
| isActive | ( | object | ) |
Checks if the given object is active.
| object | The object. |
| isCastingShadow | ( | object | ) |
Checks if a light renders shadows or if an entity has a shadow.
| object | The entity/light. |
| isVisible | ( | object | ) |
Checks if the given object is visible.
| object | The object. |
| setParent | ( | object | , |
| parent | |||
| ) |
Changes the parent of the given object.
Resets parent-child relationship if parent = nil.
| object | The object. |
| parent | The new parent. |