aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorSaracenOne2017-09-18 22:44:04 +0100
committerSaracenOne2017-09-20 01:54:01 +0100
commit2e22c07f4261625834bd0d16aa5e09005666ab14 (patch)
tree108928c82ae2d08410fb57f541d38c64baeeda56 /editor/plugins/spatial_editor_plugin.h
parentcd2ffdc6725aa6f7a9a4af6fd5abcc4cafae61b4 (diff)
downloadgodot-2e22c07f4261625834bd0d16aa5e09005666ab14.tar.gz
godot-2e22c07f4261625834bd0d16aa5e09005666ab14.tar.zst
godot-2e22c07f4261625834bd0d16aa5e09005666ab14.zip
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r--editor/plugins/spatial_editor_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index 5f3ef2dbe..f8c8dabb7 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -539,6 +539,8 @@ public:
static SpatialEditor *get_singleton() { return singleton; }
void snap_cursor_to_plane(const Plane &p_plane);
+ Vector3 snap_point(Vector3 p_target, Vector3 p_start = Vector3(0, 0, 0)) const;
+
float get_znear() const { return settings_znear->get_value(); }
float get_zfar() const { return settings_zfar->get_value(); }
float get_fov() const { return settings_fov->get_value(); }