Fix Vector2.angle_to_point() being reversed
This commit is contained in:
parent
eb98fd9442
commit
606cfa9a47
2 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ real_t Vector2::angle_to(const Vector2 &p_vector2) const {
|
|||
}
|
||||
|
||||
real_t Vector2::angle_to_point(const Vector2 &p_vector2) const {
|
||||
return (*this - p_vector2).angle();
|
||||
return (p_vector2 - *this).angle();
|
||||
}
|
||||
|
||||
real_t Vector2::dot(const Vector2 &p_other) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue