summaryrefslogtreecommitdiff
path: root/scene/3d/collision_polygon.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/collision_polygon.h')
-rw-r--r--scene/3d/collision_polygon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/collision_polygon.h b/scene/3d/collision_polygon.h
index 8373832699..693cf0640a 100644
--- a/scene/3d/collision_polygon.h
+++ b/scene/3d/collision_polygon.h
@@ -48,7 +48,7 @@ protected:
float depth;
- AABB aabb;
+ Rect3 aabb;
BuildMode build_mode;
Vector<Point2> polygon;
@@ -78,7 +78,7 @@ public:
void set_polygon(const Vector<Point2>& p_polygon);
Vector<Point2> get_polygon() const;
- virtual AABB get_item_rect() const;
+ virtual Rect3 get_item_rect() const;
int get_collision_object_first_shape() const { return shape_from; }
int get_collision_object_last_shape() const { return shape_to; }