1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Added snapping to spatial drag and drop.

This commit is contained in:
SaracenOne
2017-09-18 22:44:04 +01:00
parent cd2ffdc672
commit 2e22c07f42
6 changed files with 33 additions and 25 deletions

View File

@@ -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(); }