Lua Class - light

Extends sceneObject

light is a class in the Teverse Lua API that contains 1 properties, 0 methods and 0 events. light extends sceneObject.

This class cannot be constructed, it is managed by Teverse.

Properties
colour colour

CODE SAMPLE
light.colour = colour.rgb(255, 255, 255)
print(light.colour) --> colour.rgb(255, 255, 255)
INHERITED READONLY
vector3 absolutePosition

CODE SAMPLE
print(light.absolutePosition) --> vector3(10, 10, 10)
INHERITED READONLY
quaternion absoluteRotation

CODE SAMPLE
print(light.absoluteRotation) --> quaternion
INHERITED READONLY
number id

CODE SAMPLE
print(light.id) --> 1.0
INHERITED
string name

CODE SAMPLE
light.name = ""
print(light.name) --> ""
INHERITED
sceneObject parent

CODE SAMPLE
light.parent = sceneObject
print(light.parent) --> sceneObject
INHERITED
vector3 position

CODE SAMPLE
light.position = vector3(10, 10, 10)
print(light.position) --> vector3(10, 10, 10)
INHERITED
quaternion rotation

CODE SAMPLE
light.rotation = quaternion
print(light.rotation) --> quaternion
Methods
INHERITED
destroy( )
CODE SAMPLE
light:destroy() --> 

Destroys this object, further accessing this instance will error

INHERITED
lookAt( vector3 vector )
CODE SAMPLE
light:lookAt(vector3(10, 10, 10)) --> 

Points the sceneObject towards the provided vector

Events

Some sections of our docs are maintained on github.