Make ray visible? [Solved]

Hi,



I have a few problems with my ray's. Is it possible to make a ray visible for debugging? That would make it easier for me to see where my ray is located and which nodes it's does really intersect.



I try to make it with lines, but without something like origin and direction my result is not what I expect. A line is a line between two points (no surprise :D), so I have an array of Vector3f's with two elements - the first element is the point I get via myRay.getOrigin() and the second one the myRay.getDirection()-Point… but I see no line.





I'm confused. :?





Edit: Mark as Solved

1 Like

this should do the trick



Declare a class variable

Hi theprism,



yeah, it works. :slight_smile: Thanks for your fast reply.