aboutsummaryrefslogtreecommitdiff
path: root/modules/gridmap/grid_map.h
diff options
context:
space:
mode:
authorDavid Saltares2017-10-07 12:30:58 +0100
committerRémi Verschelde2017-10-21 00:20:25 +0200
commit8bc96cc14690d78435d3c2fb960d416df41af790 (patch)
treef2a41489afba88f09feb4a59b7eb14e29107fe28 /modules/gridmap/grid_map.h
parent35683b9f324f74012a896f5446eee9ea0f332e39 (diff)
downloadgodot-8bc96cc14690d78435d3c2fb960d416df41af790.tar.gz
godot-8bc96cc14690d78435d3c2fb960d416df41af790.tar.zst
godot-8bc96cc14690d78435d3c2fb960d416df41af790.zip
Diffstat (limited to 'modules/gridmap/grid_map.h')
-rw-r--r--modules/gridmap/grid_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map.h b/modules/gridmap/grid_map.h
index 296956ff5..5bfdf1dac 100644
--- a/modules/gridmap/grid_map.h
+++ b/modules/gridmap/grid_map.h
@@ -184,6 +184,8 @@ class GridMap : public Spatial {
void _clear_internal();
+ Vector3 _get_offset() const;
+
protected:
bool _set(const StringName &p_name, const Variant &p_value);
bool _get(const StringName &p_name, Variant &r_ret) const;
@@ -218,6 +220,9 @@ public:
int get_cell_item(int p_x, int p_y, int p_z) const;
int get_cell_item_orientation(int p_x, int p_y, int p_z) const;
+ Vector3 world_to_map(const Vector3 &p_pos) const;
+ Vector3 map_to_world(int p_x, int p_y, int p_z) const;
+
void set_clip(bool p_enabled, bool p_clip_above = true, int p_floor = 0, Vector3::Axis p_axis = Vector3::AXIS_X);
void set_cell_scale(float p_scale);