diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-24 11:11:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 11:11:04 +0200 |
commit | 90ef1fd03d43d51f09b730dee107c0e407cf0703 (patch) | |
tree | 28adfd7a112c701e1a09810014077c875aa0e0ae /scene/3d/ray_cast.h | |
parent | d7578792ca75571cedbf6f4cf98315ec3141e1b6 (diff) | |
parent | 93d6003aa8602262fb4878620178f51e828e5b0c (diff) | |
download | redot-engine-90ef1fd03d43d51f09b730dee107c0e407cf0703.tar.gz |
Merge pull request #8102 from bd339/iss3172
Show 3D raycasts when debugging collisions
Diffstat (limited to 'scene/3d/ray_cast.h')
-rw-r--r-- | scene/3d/ray_cast.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/3d/ray_cast.h b/scene/3d/ray_cast.h index 7ab7b57db3..63a53d724f 100644 --- a/scene/3d/ray_cast.h +++ b/scene/3d/ray_cast.h @@ -50,6 +50,13 @@ class RayCast : public Spatial { uint32_t layer_mask; uint32_t type_mask; + Node *debug_shape; + Ref<Material> debug_material; + + void _create_debug_shape(); + void _update_debug_shape(); + void _clear_debug_shape(); + protected: void _notification(int p_what); void _update_raycast_state(); |