diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-22 12:06:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-22 12:06:00 +0200 |
commit | 99c8a8c7b1da2831a2d6f7fb3b78bd9f68272e9f (patch) | |
tree | f7810fc7be2c4eee2b0ec3bf4795f1930fd6f7ce /editor/plugins/spatial_editor_plugin.h | |
parent | bc667aeada757463fbb562eb262d404968f0ca37 (diff) | |
parent | 2e22c07f4261625834bd0d16aa5e09005666ab14 (diff) |
Merge pull request #11401 from SaracenOne/snapped_drag
Added snapping to spatial drag and drop.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index a9dd1f1327..f2a9886f2a 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -548,6 +548,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(); } |