summaryrefslogtreecommitdiff
path: root/scene/2d/shape_cast_2d.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-01-28 15:06:54 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-01-28 15:07:22 +0100
commit7072b359b40f57e178e87b386acef5a6928e61fe (patch)
tree12dd2c6b157108cdc0689d814b3478d05e0a4487 /scene/2d/shape_cast_2d.h
parent38c6611b91f5ee7ded0c2c1d279ab7dcdc4f2f1c (diff)
Improve some method bindings to use specific `Object` subtypes
This was made possible by changes to `VariantCaster` which now make it possible to pass any `Object`-derived type as pointer.
Diffstat (limited to 'scene/2d/shape_cast_2d.h')
-rw-r--r--scene/2d/shape_cast_2d.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/scene/2d/shape_cast_2d.h b/scene/2d/shape_cast_2d.h
index 7e1ebeb315..ea36b25068 100644
--- a/scene/2d/shape_cast_2d.h
+++ b/scene/2d/shape_cast_2d.h
@@ -34,6 +34,8 @@
#include "scene/2d/node_2d.h"
#include "scene/resources/shape_2d.h"
+class CollisionObject2D;
+
class ShapeCast2D : public Node2D {
GDCLASS(ShapeCast2D, Node2D);
@@ -109,9 +111,9 @@ public:
real_t get_closest_collision_unsafe_fraction() const;
void add_exception_rid(const RID &p_rid);
- void add_exception(const Object *p_object);
+ void add_exception(const CollisionObject2D *p_node);
void remove_exception_rid(const RID &p_rid);
- void remove_exception(const Object *p_object);
+ void remove_exception(const CollisionObject2D *p_node);
void clear_exceptions();
TypedArray<String> get_configuration_warnings() const override;