Hi,
I’m trying to do a simple line trace shooting system by using the Third Person template. I want to shoot something from the character (currently no weapon so just shoot from the actual actor) and shoot towards my cross hair. However I’m having trouble doing it properly using only one line trace. Here’s what happens:
][3]
The upper line represents a cast from the camera’s location to the cross hair position. The second one starts at the actor and should end at the same place but it doesn’t. I don’t know how to compensate for the distance between the camera and the player. Here’s also the blueprint I’m using to do the line traces.
The only solution I have found so far is to get the ImpactPoint from the first line trace and then do another line trace from actor to impact point that will behave as expected. But I really want to know how to do it by using only one line trace.