feat: add more coordinate system

This commit is contained in:
Kazhnuz 2020-07-25 16:46:46 +02:00
parent 1acada1b51
commit 7364e5c206

View file

@ -20,6 +20,12 @@ function StepParent:getStepCoordinate()
local target = self.choregraphy.action.target
local x, y = target.actor:getCoordinate()
return x + self.arguments.x, y + self.arguments.y
elseif (self.arguments.origin == "start") then
local x, y = self.choregraphy.actor.start.x, self.choregraphy.actor.start.y
return x + self.arguments.x, y + self.arguments.y
elseif (self.arguments.origin == "actor") then
local x, y = self.choregraphy.actor:getCoordinate()
return x + self.arguments.x, y + self.arguments.y
end
end