I know what Vector3::Vector3.project
is for, but I'm not sure what the purpose of a 2D plane projection in 2D would be. Maybe it converts the Vector2 so its coordinates are relative to the passed in vector? The documentation doesn't really indicate what the function does.
@vmjcv said:
I want to know
1. what does this function return
The function returns a Vector2, that has been modified through some means. Unfortunately, I don't know exactly what the returned Vector2 will contain.
- what is the meaning of function parameters(p_d,p_vec)
p_d
is either a passed-in direction or distance. Given it is a real, which is kinda like a float if I recall correctly, I am guessing it is the distance.
p_vec
is the passed-in Vector2 that the function needs to execute. The vector that is being modified is this
.
- I want to know the relevant mathematical knowledge behind the function or related link you can send to me
Unfortunately, I'm do not know of any good links. Like @Saitodepaula suggested, I would see if Godot users on the other Godot communities know and maybe ask on the development IRC channels.