summaryrefslogtreecommitdiffstats
path: root/src/core/Transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Transform.cpp')
-rw-r--r--src/core/Transform.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Transform.cpp b/src/core/Transform.cpp
index d32de8d..1eca983 100644
--- a/src/core/Transform.cpp
+++ b/src/core/Transform.cpp
@@ -9,6 +9,11 @@
namespace godot {
+const Transform Transform::IDENTITY = Transform();
+const Transform Transform::FLIP_X = Transform(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0);
+const Transform Transform::FLIP_Y = Transform(1, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0);
+const Transform Transform::FLIP_Z = Transform(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0);
+
Transform Transform::inverse_xform(const Transform &t) const {
Vector3 v = t.origin - origin;