I’m curious about something that I noticed in this lecture. During the video, Ben uses the LineTraceSingleByChannel() method and in order to do so, he provides it with a hit result, a start location, an end location and a collision type.
However, in the Unreal documentation, this method calls for two additional lines, query parameters and response parameters.
I was under the impression that we had to complete every portion of the signature for these Unreal methods to operate correctly? In another video, we even created a “camera direction” variable that we didn’t even need just to complete a signature.
Any insight into this would be very much appreciated.
Crosshair position is only Screen position and by this order: FVector StartPosiotion(CrosshairPosition.X, CrosshairPostion.Y, 0); I can’t convert it World location. did I correct understand?
Ben takes Camera postion for StartLocation problem is that my Camera Location is higher than Crosshair positon therefor if I want to aim the Tank I have to lower down Crosshair, which is shown in the photo.
I can change my camera position and equal it Crosshair postion but it also change viewpoint
Is there anyway to start LineTrace from Crosshair position?
I think the problem is logical because Camera position is above to Crosshair outcome this aiming is not matching Crosshair. do you know how i can resolve this problem?
I know solution if I use GetHitResultAtScreenPosition() function but it significantly change my code and I want to follow the course