diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-06-13 18:49:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 18:49:35 +0200 |
commit | 8efbe9ed3dc51e89d032cc2464cfe96fa9e4ea78 (patch) | |
tree | eefcc77509fe5e5167207b5ea7e95d9045147b62 /core/math/triangle_mesh.h | |
parent | 1651dbb54df30dd189658b9cf9cd84f650be6bdc (diff) | |
parent | 9cd1c20f6aae87e34b45471271062127d385871e (diff) |
Merge pull request #19487 from JFonS/better_3d_select
Improve 3D selection
Diffstat (limited to 'core/math/triangle_mesh.h')
-rw-r--r-- | core/math/triangle_mesh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/math/triangle_mesh.h b/core/math/triangle_mesh.h index 78de7ae7ee..bf793fc50f 100644 --- a/core/math/triangle_mesh.h +++ b/core/math/triangle_mesh.h @@ -89,6 +89,8 @@ public: bool is_valid() const; bool intersect_segment(const Vector3 &p_begin, const Vector3 &p_end, Vector3 &r_point, Vector3 &r_normal) const; bool intersect_ray(const Vector3 &p_begin, const Vector3 &p_dir, Vector3 &r_point, Vector3 &r_normal) const; + bool intersect_convex_shape(const Plane *p_planes, int p_plane_count) const; + bool inside_convex_shape(const Plane *p_planes, int p_plane_count, Vector3 p_scale = Vector3(1, 1, 1)) const; Vector3 get_area_normal(const AABB &p_aabb) const; PoolVector<Face3> get_faces() const; |