Do you mean that it detects a collision in the same frame where you turned it off, or that you turned it off in some frame and then in some later frame it still detects a collision?
Related, what does is_colliding()
return?
Also, I assume your using ray.enabled = false
, right? Above you said ray.enable = false
.