Is there anything like a move_local() but in 3d?

Godot Version

4.2.1

Question

I would like to know a way to move a character in its local rotation.
Is there anything like the move_local_x and move_local_y, but in 3d?

Thanks.

Have you looked into move_and_collide() and move_and_slide()?

1 Like

There is a document search button in the editor that can quickly answer this. If you interact with rotate_y(radian) x or z that is local space. I think the opposite is global_rotate(vec3(axis), radian).

1 Like

Yes, I tried.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.