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)
|
pprint("C:", c)
|
||||||
end
|
end
|
||||||
|
|
||||||
function engio.move(actor, place, action, xyz)
|
function engio.move(actor, place, action, xyz, facing)
|
||||||
-- todo: sanity check the action and xyz.
|
-- todo: sanity check the parameters.
|
||||||
dprint("engio.move ", action, " ", xyz)
|
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
||||||
tangible.animate(actor, nil, {action=action, xyz=xyz})
|
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user