mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
Merge pull request #2473 from ianByrne/patch-1
Fix typo in Using Transforms examples
This commit is contained in:
@@ -374,7 +374,7 @@ Converting a rotation to quaternion is straightforward.
|
||||
|
||||
// Convert basis to quaternion, keep in mind scale is lost
|
||||
var a = transform.basis.Quat();
|
||||
var b = transform.basis.Quat();
|
||||
var b = transform2.basis.Quat();
|
||||
// Interpolate using spherical-linear interpolation (SLERP).
|
||||
var c = a.Slerp(b, 0.5f); // find halfway point between a and b
|
||||
// Apply back
|
||||
|
||||
Reference in New Issue
Block a user