You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
-improved physics ccd
-html5 exporter works again -disable repeat on image loader by default -can change shape offset en tileset, texture offset was broken
This commit is contained in:
@@ -42,6 +42,7 @@ class TileSet : public Resource {
|
||||
String name;
|
||||
Ref<Texture> texture;
|
||||
Vector2 offset;
|
||||
Vector2 shape_offset;
|
||||
Rect2i region;
|
||||
Vector<Ref<Shape2D> > shapes;
|
||||
};
|
||||
@@ -70,8 +71,11 @@ public:
|
||||
void tile_set_texture(int p_id, const Ref<Texture> &p_texture);
|
||||
Ref<Texture> tile_get_texture(int p_id) const;
|
||||
|
||||
void tile_set_offset(int p_id,const Vector2 &p_offset);
|
||||
Vector2 tile_get_offset(int p_id) const;
|
||||
void tile_set_texture_offset(int p_id,const Vector2 &p_offset);
|
||||
Vector2 tile_get_texture_offset(int p_id) const;
|
||||
|
||||
void tile_set_shape_offset(int p_id,const Vector2 &p_offset);
|
||||
Vector2 tile_get_shape_offset(int p_id) const;
|
||||
|
||||
void tile_set_region(int p_id,const Rect2 &p_region);
|
||||
Rect2 tile_get_region(int p_id) const;
|
||||
|
||||
Reference in New Issue
Block a user