diff options
| author | Juan Linietsky | 2017-07-01 13:02:04 -0300 |
|---|---|---|
| committer | GitHub | 2017-07-01 13:02:04 -0300 |
| commit | a808f53020aa710ff81392e2349b8a39c55d2717 (patch) | |
| tree | e641c0bb2759957193e06f4e83fe9e45a5209ab9 /scene/resources/tile_set.h | |
| parent | 8e8e4b30e51cfc063daa57e031b7f427703e0eb8 (diff) | |
| download | godot-a808f53020aa710ff81392e2349b8a39c55d2717.tar.gz godot-a808f53020aa710ff81392e2349b8a39c55d2717.tar.zst godot-a808f53020aa710ff81392e2349b8a39c55d2717.zip | |
Revert "Fix Tileset/tilemap issues related to my adding of one-way collisions to them"
Diffstat (limited to '')
| -rw-r--r-- | scene/resources/tile_set.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/tile_set.h b/scene/resources/tile_set.h index 99c506390..c07d82c75 100644 --- a/scene/resources/tile_set.h +++ b/scene/resources/tile_set.h @@ -43,7 +43,7 @@ class TileSet : public Resource { public: struct ShapeData { Ref<Shape2D> shape; - Transform2D shape_transform; + Vector2 shape_offset; bool one_way_collision; ShapeData() { @@ -105,14 +105,14 @@ public: void tile_set_shape(int p_id, int p_shape_id, const Ref<Shape2D> &p_shape); Ref<Shape2D> tile_get_shape(int p_id, int p_shape_id) const; - void tile_set_shape_transform(int p_id, int p_shape_id, const Transform2D &p_transform); - 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; void tile_clear_shapes(int p_id); - void tile_add_shape(int p_id, const Ref<Shape2D> &p_shape, const Transform2D &p_transform, bool p_one_way = false); + void tile_add_shape(int p_id, const Ref<Shape2D> &p_shape, const Vector2 &p_offset, bool p_one_way = false); int tile_get_shape_count(int p_id) const; void tile_set_shapes(int p_id, const Vector<ShapeData> &p_shapes); |
