mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Fix typo in Using Transforms examples
Match CSharp example with GDScript example
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