1 #ifndef COLLISION_POLYGON_H 2 #define COLLISION_POLYGON_H 4 #include "scene/3d/spatial.h" 5 #include "scene/resources/shape.h" 28 void _add_to_collision_object(
Object *p_obj);
29 void _update_parent();
35 void _set_shape_range(
const Vector2& p_range);
36 Vector2 _get_shape_range()
const;
40 void _notification(
int p_what);
41 static void _bind_methods();
44 void set_build_mode(BuildMode p_mode);
45 BuildMode get_build_mode()
const;
47 void set_depth(
float p_depth);
48 float get_depth()
const;
53 virtual AABB get_item_rect()
const;
55 int get_collision_object_first_shape()
const {
return shape_from; }
56 int get_collision_object_last_shape()
const {
return shape_to; }
61 VARIANT_ENUM_CAST( CollisionPolygon::BuildMode );
62 #endif // COLLISION_POLYGON_H
Definition: collision_polygon.h:9