Add a facing parameter to the engio.move
This commit is contained in:
@@ -39,8 +39,8 @@ function engio.myfunction(actor, place, a, b, c)
|
||||
pprint("C:", c)
|
||||
end
|
||||
|
||||
function engio.move(actor, place, action, xyz)
|
||||
-- todo: sanity check the action and xyz.
|
||||
dprint("engio.move ", action, " ", xyz)
|
||||
tangible.animate(actor, nil, {action=action, xyz=xyz})
|
||||
function engio.move(actor, place, action, xyz, facing)
|
||||
-- todo: sanity check the parameters.
|
||||
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
||||
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user