I was trying to cast 6 different rays from an object in different directions.
Is there any way to visualize the casted rays?
I tried with RayHelper but that doesnt seem to work… I can set the RayHelper to show up correctly, orientated in the right way, but then the ray intersections doesn’t seem to match the values…
If I just use RayHelper without specifying direction, should it inherit that property from the Ray wich they are attached to? If so, seems like Ray direction is not set correctly. Seems like they all still pointing in the same direction…
PG without direction on RayHelper: https://www.babylonjs-playground.com/#780S0V#11
Update: seems like I dont need to attach the ray to mesh, is this how it suppoed to work?
Becouse the ray intersection method still matches all wrong meshes, even if the display is ok.
Can you help me figure out the correct implementation? Thanks!