Ray can't turn in the right direction

hey~all. Why the ray can’t turn in the right direction. when camera’s parent rotated. what did i miss ?

pg: Babylon.js Playground

You need to pass the camera.globalPosition position to the camera.getForwardRay function when the camera is parented to another object:

@Evgeni_Popov is on :fire::fire::fire: today !!! Thanks a lot !!!

Thanks a lot ! Thanks to every babylonian . Staying with us even during the Christmas holidays. :hugs: