This post is for information purposes only.
After having completed the above tutorial, my astronaut would move in any direction using the keys, however, the figure would always remain in the idle default view.
The program compiled with no errors.
Long story short, the tutorial script and the script given at the end of the tutorial do not match.
See partial copy of code pasted into this message.
function update(self, dt)
if vmath.length_sqr(self.dir) > 1 then
self.dir = vmath.normalize(self.dir)
end
local p = go.get_position()
go.set_position(p + self.dir * speed * dt)
-- self.dir = vmath.vector3() < < < < < < This code was not in the code at the end.
< < < < < < After removal, the program runs fine.
-- animate the astronaut
local anim = hash("idle")
This post is for information purposes only.
Thanks.