I am trying to figure out how the
one_way_collision_direction parameter of a PhysicsBody2D object works.
In the documentation, it is written :
void set_one_way_collision_direction( Vector2 dir )
Set a direction in which bodies can go through this one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions.
However, in the Kinematic Character exemple, the platform vector is (0,1), and the player can go up through the object.
I seems that it works the opposite way to the documentation, or I am missing something?
By the way, as it is a direction vector, is it the same to set it as (0,1) or (0,2) ?