We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ec67eb + f044c7c commit 2d81a29Copy full SHA for 2d81a29
tutorials/3d/using_transforms.rst
@@ -383,8 +383,8 @@ Converting a rotation to quaternion is straightforward.
383
.. code-tab:: csharp
384
385
// Convert basis to quaternion, keep in mind scale is lost
386
- var a = transform.Basis.GetQuaternion();
387
- var b = transform2.Basis.GetQuaternion();
+ var a = new Quaternion(transform.Basis);
+ var b = new Quaternion(transform2.Basis);
388
// Interpolate using spherical-linear interpolation (SLERP).
389
var c = a.Slerp(b, 0.5f); // find halfway point between a and b
390
// Apply back
0 commit comments