Character walking is fixed, using the new Movement Component State model.
This commit is contained in:
@@ -24,10 +24,15 @@ end
|
||||
|
||||
function engio.move(action, xyz, facing)
|
||||
-- todo: sanity check the parameters.
|
||||
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
||||
-- dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
||||
tangible.animate{tan=actor, anim={action=action, interactive=true, xyz=xyz, facing=facing}}
|
||||
end
|
||||
|
||||
function moveto(x, y)
|
||||
local z = tangible.animfinal(actor).xyz[3]
|
||||
tangible.animate{tan=actor, anim={action="moveto", xyz={x, y, z}, facing=math.auto}}
|
||||
end
|
||||
|
||||
function cube.lookhotkeys(keys)
|
||||
keys:add("Z", "Cube Hi", function () dprint("Doing Cube Hi") end)
|
||||
keys:add("X", "Cube Bye", function () dprint("Doing Cube Bye") end)
|
||||
|
||||
Reference in New Issue
Block a user