Skip to content

Commit

Permalink
Merge pull request #66387 from aaronfranke/cs-basis-euler
Browse files Browse the repository at this point in the history
C#: Update Basis Euler angle code to match core
  • Loading branch information
akien-mga committed Oct 3, 2022
2 parents 498844f + fe71353 commit 9c28941
Show file tree
Hide file tree
Showing 2 changed files with 292 additions and 58 deletions.
2 changes: 1 addition & 1 deletion doc/classes/Basis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<return type="Vector3" />
<param index="0" name="order" type="int" default="2" />
<description>
Returns the basis's rotation in the form of Euler angles (in the YXZ convention: when decomposing, first Z, then X, and Y last). The returned vector contains the rotation angles in the format (X angle, Y angle, Z angle).
Returns the basis's rotation in the form of Euler angles. The Euler order depends on the [param order] parameter, by default it uses the YXZ convention: when decomposing, first Z, then X, and Y last. The returned vector contains the rotation angles in the format (X angle, Y angle, Z angle).
Consider using the [method get_rotation_quaternion] method instead, which returns a [Quaternion] quaternion instead of Euler angles.
</description>
</method>
Expand Down
Loading

0 comments on commit 9c28941

Please sign in to comment.