You should be able to pick a direction of your choosing, assuming it’s in the XY plane, and that the go.get_rotation()
is a rotation around the Z axis. For instance, what direction makes sense to you when talking about “facing”?
Then, you should be able to do something like this to get your direction updated:
local rotation = go.get_rotation()
local direction = vmath.vector(1,0,0)
local updateddirection = vmath.rotate(rotation, direction)
local updatedposition = position + updateddirection * speed * dt -- or something similar
Read more here here. Big tip is to learn what available functions there is i the vmath module, that way it is easier to reason about what’s possible to do.