minimized body methods

This commit is contained in:
Tim Anema 2014-10-26 15:27:35 -04:00
parent 8da68cc68c
commit 5add341a14

View File

@ -46,27 +46,8 @@ function light:setPosition(x, y, z)
end end
-- get x -- get x
function light:getX() function light:getPosition()
return self.x return self.x, self.y
end
-- get y
function light:getY()
return self.y
end
-- set x
function light:setX(x)
if x ~= self.x then
self.x = x
end
end
-- set y
function light:setY(y)
if y ~= self.y then
self.y = y
end
end end
-- set color -- set color