diff options
author | Vito <vitochiarella@gmail.com> | 2017-11-13 07:42:49 +0000 |
---|---|---|
committer | Vito <vitochiarella@gmail.com> | 2017-11-15 09:22:07 +0000 |
commit | 5515d28107d444b84c19f2d14ced89c6f08a53dd (patch) | |
tree | cdc6aba87868b7568e0b556a2741e7ac4ab49506 /scene/resources/tile_set.h | |
parent | afec30837c7026251b90fab6f47131db19df278d (diff) | |
download | redot-engine-5515d28107d444b84c19f2d14ced89c6f08a53dd.tar.gz |
Fixing tilemap rotation for non top-left tiles.
Diffstat (limited to 'scene/resources/tile_set.h')
-rw-r--r-- | scene/resources/tile_set.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/tile_set.h b/scene/resources/tile_set.h index fe782ff987..3ef3f00cef 100644 --- a/scene/resources/tile_set.h +++ b/scene/resources/tile_set.h @@ -108,6 +108,9 @@ public: void tile_set_shape_transform(int p_id, int p_shape_id, const Transform2D &p_offset); Transform2D tile_get_shape_transform(int p_id, int p_shape_id) const; + void tile_set_shape_offset(int p_id, int p_shape_id, const Vector2 &p_offset); + Vector2 tile_get_shape_offset(int p_id, int p_shape_id) const; + void tile_set_shape_one_way(int p_id, int p_shape_id, bool p_one_way); bool tile_get_shape_one_way(int p_id, int p_shape_id) const; |