diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2023-05-02 16:22:59 +0200 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2023-05-03 08:41:37 +0200 |
commit | 3f17a81f872baa127920affba4c5431299a74091 (patch) | |
tree | 762fb48ba96de87eeb9fff4a2bf965fc92c9f050 /modules/csg/csg_shape.h | |
parent | 9f12e7b52d944281a39b7d3a33de6700c76cc23a (diff) | |
download | redot-engine-3f17a81f872baa127920affba4c5431299a74091.tar.gz |
Add debug collision shape to CSG with collision
Diffstat (limited to 'modules/csg/csg_shape.h')
-rw-r--r-- | modules/csg/csg_shape.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/csg/csg_shape.h b/modules/csg/csg_shape.h index c244107bfb..d0e4d0c8cd 100644 --- a/modules/csg/csg_shape.h +++ b/modules/csg/csg_shape.h @@ -68,6 +68,8 @@ private: real_t collision_priority = 1.0; Ref<ConcavePolygonShape3D> root_collision_shape; RID root_collision_instance; + RID root_collision_debug_instance; + Transform3D debug_shape_old_transform; bool calculate_tangents = true; @@ -107,6 +109,10 @@ private: void _update_shape(); void _update_collision_faces(); + bool _is_debug_collision_shape_visible(); + void _update_debug_collision_shape(); + void _clear_debug_collision_shape(); + void _on_transform_changed(); protected: void _notification(int p_what); |