There is no way to see the raycast line. So, I am making a feature request here, to see the raycast line.
And another question, does raycast sets its rotation with respect to its origin? For example, its origin is obj.Point(“ray”), and when obj rotates, the point rotates. Now, if obj’s angle = 50 and ray’s angle = 90, will its angle turn into 50+90 = 180?
See there, when the obj is 0 degrees and the point is where it should be, the raycast is pointing upwards. Below that, you can see that when the obj is 90 degrees, raycast will rotate with it. Now, my question is, does this happen?
I like the idea. However, a raycast only lasts for the event/frame. The debug drawings are for fixed and permanent properties. So it’d be pointless to visualise the raycast, as it potentially may only be on screen for a frame (a fraction of a second)
Raycasts use absolute angles, not relative. They are not linked to an object, but go from a point out, so an object’s rotation has no impact on the raycast. Whether that originating point is a point defined by an object or if it’s some arbitrary position is of no concern to the raycast function. It just requires a staring point.