feat: add more coordinate system
This commit is contained in:
parent
1acada1b51
commit
7364e5c206
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,12 @@ function StepParent:getStepCoordinate()
|
||||||
local target = self.choregraphy.action.target
|
local target = self.choregraphy.action.target
|
||||||
local x, y = target.actor:getCoordinate()
|
local x, y = target.actor:getCoordinate()
|
||||||
return x + self.arguments.x, y + self.arguments.y
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue