Line Trace doesn't match Projectile Path

For some reason LineTrace and FindLookAtRotation don’t give the same impact point, even when using the same start and end points.

To get the bullet to line up, BreakHitResult> FindLookAtRotation for TraceStart to ImpactPoint.

Why wouldn’t they add an option to attach a projectile to the linetrace and be able to enable gravity?

1 Like

I did figure out a similar fix for it. My question is why doesn’t LineTrace and LookAtRotation match even when inputting the same exact start/ends and start locations for the SpawnActor function?

Define Match.

Screenshot (80)


Exact points of impact will never match between a projectile and a line trace. Projectiles are lerped over time. Two projectiles with the exact same spawn points and velocities will not match 100%.

Projectiles are given a Trajectory/heading, not an end location.

2 Likes

Thanks. I have decided to abandon LineTrace for bullets.
Real bullet hit tracking is my choice for now. Hopefully there isn’t too many issues with ping

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.