Empty
| Function | Description |
|---|---|
| Empty.new() | Creates an empty object |
Empty.new(Vector3D position) |
Creates an empty object at position |
Empty.new(Vector3D position, Vector3D rotation) |
Creates an empty object at position with rotation |
Empty.new(Vector3D position, Vector3D rotation, Vector3D scale) |
Creates an empty object with full transform |
| Property | Type | Description |
|---|---|---|
| .position | Vector3D | Object position |
| .rotation | Vector3D | Object rotation |
| .scale | Vector3D | Object scale |
| .visible | bool | Object visibility |
| .debug | bool | Enable/disable debug visualization |
| Function | Returns | Description |
|---|---|---|
| :destroy() | Destroys the object | |
:setParent(3DObject other) |
Parents this object to another 3D object | |
| :getBoundingBox() | Lua table | Returns bounding box info: { min = Vector3D, max = Vector3D } |
| :getAbsolutePosition() | Vector3D | Returns world-space position |
| :getAbsoluteRotation() | Vector3D | Returns world-space rotation |
| :getAbsoluteScale() | Vector3D | Returns world-space scale |
| :updateAbsolutePosition() | Updates world transform (non-recursive) |