1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

[Core] Transform2D add set_scale and fix set_rotation

Note: These are still not exposed to GDScript
This commit is contained in:
Aaron Franke
2019-02-12 12:55:46 -05:00
parent f97eb6d881
commit 06df7b0963
3 changed files with 13 additions and 4 deletions

View File

@@ -81,6 +81,7 @@ struct Transform2D {
real_t basis_determinant() const;
Size2 get_scale() const;
void set_scale(Size2 &p_scale);
_FORCE_INLINE_ const Vector2 &get_origin() const { return elements[2]; }
_FORCE_INLINE_ void set_origin(const Vector2 &p_origin) { elements[2] = p_origin; }