Lua Class - directionalLight

Extends light

directionalLight is a class that contains 0 properties, 0 methods and 0 events. This class extends light.

CODE SAMPLE
--The values set in this constructor are random and may not work correctly.
local directionalLight = teverse.construct("directionalLight", {
})
Properties
INHERITED READONLY
vector3 absolutePosition

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

CODE SAMPLE
print(directionalLight.absoluteRotation) --> quaternion
INHERITED
colour colour

CODE SAMPLE
directionalLight.colour = colour.rgb(255, 255, 255)
print(directionalLight.colour) --> colour.rgb(255, 255, 255)
INHERITED READONLY
number id

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

CODE SAMPLE
directionalLight.name = ""
print(directionalLight.name) --> ""
INHERITED
vector3 position

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

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

Destroys this object, further accessing this instance will error

Events

Some sections of our docs are maintained on github.