Is there a way to make the Ray visible?

Is there a way to make the ray visible. I got a ray that checks if a physics character node passed that line but it seems that it only checks the collision when the character is to close to to the origin node. I got nodes for origin and direction then I get its world translation and use it as the origin and direction of the ray.