|
@@ -122,6 +122,10 @@ public:
|
|
|
void set_shape(int p_index, ShapeSW *p_shape);
|
|
|
void set_shape_transform(int p_index, const Transform &p_transform);
|
|
|
_FORCE_INLINE_ int get_shape_count() const { return shapes.size(); }
|
|
|
+ _FORCE_INLINE_ bool is_shape_disabled(int p_index) const {
|
|
|
+ CRASH_BAD_INDEX(p_index, shapes.size());
|
|
|
+ return shapes[p_index].disabled;
|
|
|
+ }
|
|
|
_FORCE_INLINE_ ShapeSW *get_shape(int p_index) const { return shapes[p_index].shape; }
|
|
|
_FORCE_INLINE_ const Transform &get_shape_transform(int p_index) const { return shapes[p_index].xform; }
|
|
|
_FORCE_INLINE_ const Transform &get_shape_inv_transform(int p_index) const { return shapes[p_index].xform_inv; }
|