aboutsummaryrefslogtreecommitdiff
path: root/core/math/transform.h
diff options
context:
space:
mode:
authorThomas Herzog2017-06-19 23:30:40 +0200
committerGitHub2017-06-19 23:30:40 +0200
commitb6b225f4c5c3a9b91cc9ae8e9e283b0dd31a54cd (patch)
tree6daecda8484dfcc22b9f44e04414e20448626392 /core/math/transform.h
parent9d67be447a80a742a9d5c5f12363da6d77f7284d (diff)
parenta1c8896d9d1b4806ad59502aa17c9b6e87d5eb74 (diff)
downloadgodot-b6b225f4c5c3a9b91cc9ae8e9e283b0dd31a54cd.tar.gz
godot-b6b225f4c5c3a9b91cc9ae8e9e283b0dd31a54cd.tar.zst
godot-b6b225f4c5c3a9b91cc9ae8e9e283b0dd31a54cd.zip
Merge pull request #8870 from tagcup/pathfollow
Fix PathFollow rotations.
Diffstat (limited to 'core/math/transform.h')
-rw-r--r--core/math/transform.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/core/math/transform.h b/core/math/transform.h
index c39ea7826..48467f2ed 100644
--- a/core/math/transform.h
+++ b/core/math/transform.h
@@ -97,15 +97,7 @@ public:
void set(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz, real_t tx, real_t ty, real_t tz) {
- basis.elements[0][0] = xx;
- basis.elements[0][1] = xy;
- basis.elements[0][2] = xz;
- basis.elements[1][0] = yx;
- basis.elements[1][1] = yy;
- basis.elements[1][2] = yz;
- basis.elements[2][0] = zx;
- basis.elements[2][1] = zy;
- basis.elements[2][2] = zz;
+ basis.set(xx, xy, xz, yx, yy, yz, zx, zy, zz);
origin.x = tx;
origin.y = ty;
origin.z = tz;