another question. the debug.drawray gag. Isn't actually showing you the ray right? you are just telling it to draw a ra...

another question. the debug.drawray gag. Isn't actually showing you the ray right? you are just telling it to draw a ray with the identical parameters as the raycast? Hence why you can arbitrarily change it's legnth? If so then do raycasts go on forever?
  • Jonathan Gonzalez(jgonzalez) replied
    If you don't specify a range for the raycast it will be set to "infinity", so yes technically it would go on forever. The Draw ray applies a color to the ray but you can also specify the exact same range value as the raycast so it only draws the actual length of the ray. In the video we used "up * 10" for the draw ray section, so it only displayed a green ray for that specific length but with the actual ray we didn't specify a length so it was actually much much longer than that. Hope that makes sense.