+1 vote

In the help section inside the engine, in the KinematicBody2D section, there is this written: "Vector2 move( Vector2 rel_vec )"

What does "rel_vec" mean? I'm a total noob, can anyone help?

in Engine by (95 points)

1 Answer

+4 votes
Best answer

"rel_vec" stands for relative vector. It means that the move() function would move the node to a relative position from where it is before call move(). It differs from move_to() what is an absolute positioning of the node.

by (690 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.