Billboard
Function | Description |
---|---|
Billboard.new() | Creates an empty billboard |
Billboard.new(Billboard other ) |
Creates a copy of another billboard |
Billboard.new(Material material ) |
Creates a billboard using the given material |
Property | Type | Description |
---|---|---|
.position | Vector3D | Billboard position |
.size | Vector2D | Billboard size |
.yPivot | float | Vertical pivot point of the billboard |
.lockAxis | Vector3D | Lock axis from rotating (each axis uses a bool value) |
.visible | bool | Billboard visibility |
Function | Returns | Description |
---|---|---|
:loadMaterial(Material material ) |
Loads a material into the billboard | |
:destroy() | Destroys the billboard | |
:setParent(3DObject other ) |
Parents this billboard to another 3D object | |
:getAbsolutePosition() | Vector3D | Returns world-space position |
:getAbsoluteRotation() | Vector3D | Returns world-space rotation |
:getAbsoluteScale() | Vector3D | Returns world-space scale |
:updateAbsolutePosition() | Updates world transform (non-recursive) |