mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-03 18:09:13 +03:00
Merge pull request #191 from clayjohn/nativescript-1.1
Fix Vector3.distance_to
This commit is contained in:
@@ -229,12 +229,12 @@ real_t Vector3::length_squared() const
|
||||
|
||||
real_t Vector3::distance_squared_to(const Vector3& b) const
|
||||
{
|
||||
return (b-*this).length();
|
||||
return (b-*this).length_squared();
|
||||
}
|
||||
|
||||
real_t Vector3::distance_to(const Vector3& b) const
|
||||
{
|
||||
return (b-*this).length_squared();
|
||||
return (b-*this).length();
|
||||
}
|
||||
|
||||
real_t Vector3::dot(const Vector3& b) const
|
||||
|
||||
Reference in New Issue
Block a user