Help me? Tutorial: Walking astronaut (SOLVED)

Hi folks, can someone help me? What is wrong?


1 Like

On line 17 you already get the position with

local p = go.get_position()

As shown in the documentation for go.get_position(), it accepts a url, not a vector object as you are doing on line 18.

On line 18, you take a vmath vector named p, another vmath vector name self.dir and multiply them by two values. The result of this operation is another vector. I am assuming on line 18 you instead wanted go.set_position(), for it seems as if you are calculating their next position using their direction and velocity.

1 Like

This is the instruction:

I miss my mistake…

At line 18, you typed

go.get_position(p + self.dir * speed * dt)

instead of

go.set_position(p + self.dir * speed * dt)
2 Likes

Ohhhhh :scream: … thank you. It working now!

1 Like