aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/shape_2d.h
diff options
context:
space:
mode:
authorJuan Linietsky2014-02-19 11:57:14 -0300
committerJuan Linietsky2014-02-19 11:57:14 -0300
commitd7d65fa2f2b51d03f7bdfcbceedca99188ce979c (patch)
treefecdf1bfa39ba5a4895b4dbf340a3b68098c109a /scene/resources/shape_2d.h
parent8c1731b67995add31361ae526b0e6af76346181e (diff)
downloadgodot-d7d65fa2f2b51d03f7bdfcbceedca99188ce979c.tar.gz
godot-d7d65fa2f2b51d03f7bdfcbceedca99188ce979c.tar.zst
godot-d7d65fa2f2b51d03f7bdfcbceedca99188ce979c.zip
Diffstat (limited to 'scene/resources/shape_2d.h')
-rw-r--r--scene/resources/shape_2d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/shape_2d.h b/scene/resources/shape_2d.h
index b01820c22..5f254a157 100644
--- a/scene/resources/shape_2d.h
+++ b/scene/resources/shape_2d.h
@@ -47,6 +47,12 @@ public:
void set_custom_solver_bias(real_t p_bias);
real_t get_custom_solver_bias() const;
+ bool collide_with_motion(const Matrix32& p_local_xform, const Vector2& p_local_motion, const Ref<Shape2D>& p_shape, const Matrix32& p_shape_xform, const Vector2 &p_p_shape_motion);
+ bool collide(const Matrix32& p_local_xform, const Ref<Shape2D>& p_shape, const Matrix32& p_shape_xform);
+
+ Variant collide_with_motion_and_get_contacts(const Matrix32& p_local_xform, const Vector2& p_local_motion, const Ref<Shape2D>& p_shape, const Matrix32& p_shape_xform, const Vector2 &p_p_shape_motion);
+ Variant collide_and_get_contacts(const Matrix32& p_local_xform, const Ref<Shape2D>& p_shape, const Matrix32& p_shape_xform);
+
virtual RID get_rid() const;
Shape2D();
~Shape2D();