mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[.NET] Fix Quaternion(Vector3, Vector3) constructor when vectors are the same.
This commit is contained in:
parent
45509c284c
commit
dd662f9c6a
1 changed files with 4 additions and 0 deletions
|
|
@ -576,6 +576,10 @@ namespace Godot
|
|||
{
|
||||
if (d >= 0.0f)
|
||||
{
|
||||
X = 0.0f;
|
||||
Y = 0.0f;
|
||||
Z = 0.0f;
|
||||
W = 1.0f;
|
||||
return; // Vectors are same.
|
||||
}
|
||||
Vector3 axis = n0.GetAnyPerpendicular();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue