diff options
author | AndreaCatania <info@andreacatania.com> | 2018-01-12 12:31:02 +0100 |
---|---|---|
committer | AndreaCatania <info@andreacatania.com> | 2018-01-12 12:31:02 +0100 |
commit | 207af6c4f9b8204b0832ce95570fd1d757953034 (patch) | |
tree | c2d18c684bd5e018a97bca00976983557e949330 /scene/3d | |
parent | baef1e71c76c7989b950ddb2e60820db35e71957 (diff) |
Reset collider on ray node
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/ray_cast.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/ray_cast.cpp b/scene/3d/ray_cast.cpp index 556774a0d1..dd5ae8a999 100644 --- a/scene/3d/ray_cast.cpp +++ b/scene/3d/ray_cast.cpp @@ -217,6 +217,8 @@ void RayCast::_update_raycast_state() { against_shape = rr.shape; } else { collided = false; + against = 0; + against_shape = 0; } } |