summaryrefslogtreecommitdiff
path: root/core/math/triangle_mesh.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-06-13 18:49:35 +0200
committerGitHub <noreply@github.com>2018-06-13 18:49:35 +0200
commit8efbe9ed3dc51e89d032cc2464cfe96fa9e4ea78 (patch)
treeeefcc77509fe5e5167207b5ea7e95d9045147b62 /core/math/triangle_mesh.h
parent1651dbb54df30dd189658b9cf9cd84f650be6bdc (diff)
parent9cd1c20f6aae87e34b45471271062127d385871e (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.h2
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;