summaryrefslogtreecommitdiff
path: root/core/bind/core_bind.h
diff options
context:
space:
mode:
authorCarl Olsson <carl.olsson@gmail.com>2015-02-15 18:21:35 +1000
committerCarl Olsson <carl.olsson@gmail.com>2015-02-15 18:21:35 +1000
commit196185d0be3ea7c05335c03d7e2db3e7c17d7a49 (patch)
tree572596c4261ed5e520ba1628661261ea0d5ee620 /core/bind/core_bind.h
parent6a38ab1b43e4a107a28c52ba2036a4886794f625 (diff)
parent2185c018f6593e6d64b2beb62202d2291e2e008e (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts: scene/2d/tile_map.cpp
Diffstat (limited to 'core/bind/core_bind.h')
-rw-r--r--core/bind/core_bind.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h
index 12a4ae86eb..057ad90fe9 100644
--- a/core/bind/core_bind.h
+++ b/core/bind/core_bind.h
@@ -220,6 +220,8 @@ public:
void set_time_scale(float p_scale);
float get_time_scale();
+ bool is_ok_left_and_cancel_right() const;
+
static _OS *get_singleton() { return singleton; }
_OS();
@@ -248,6 +250,8 @@ public:
Vector3 get_closest_point_to_segment(const Vector3& p_point, const Vector3& p_a,const Vector3& p_b);
Variant ray_intersects_triangle( const Vector3& p_from, const Vector3& p_dir, const Vector3& p_v0,const Vector3& p_v1,const Vector3& p_v2);
Variant segment_intersects_triangle( const Vector3& p_from, const Vector3& p_to, const Vector3& p_v0,const Vector3& p_v1,const Vector3& p_v2);
+ bool point_is_inside_triangle(const Vector2& s, const Vector2& a, const Vector2& b, const Vector2& c) const;
+
DVector<Vector3> segment_intersects_sphere( const Vector3& p_from, const Vector3& p_to, const Vector3& p_sphere_pos,real_t p_sphere_radius);
DVector<Vector3> segment_intersects_cylinder( const Vector3& p_from, const Vector3& p_to, float p_height,float p_radius);
DVector<Vector3> segment_intersects_convex(const Vector3& p_from, const Vector3& p_to,const Vector<Plane>& p_planes);