well i tried that and that did the same. That is why i have taken the Capsule component’s location and forward vector for this. But it didn’t work as well. So right now what i have done is i put another camera to actor and position it as a first person camera and then casting a ray from that. It works for now. But im not sure that it is the correct way.