Skip to content
Guard13007 edited this page Nov 10, 2014 · 8 revisions

:setPosition(x, y, z)

z not required param

sets the position of the light

:getPosition()

returns: light position x, y, z

gets the lights position

:setColor(red, green, blue)

sets the rgb color or the light

:setRange(range)

sets the radius range of the light

:setDirection(direction)

sets the direction the light is facing in radians

:setAngle(angle)

sets the slice size 0 -> Tau (2*pi), Tau meaning light going out in all directions, 0.1 means a 0.1 radian angle going out in the set direction

:setSmooth(smooth)

shadow smoothing only positive numbers

:setGlowSize(size)

the size of the brightest part of the light (the "bulb"), values from 0 to 1 (percent of the light that glows)

:setGlowStrength(strength)

how much brighter the brightest part of the light (the "bulb") is

:setVisible(is_visible)

allows the light to be turned on and off by setting if it is visible or not

Clone this wiki locally