Is a curved line trace possible?


Quick question: Is it possible to do a line trace but in a curve instead of a straight line?

Yes it is. I have seen it, but I am sorry I can’t help you. I don’t know how to do it myself. It would be pretty helpful if somebody answers this tho :slight_smile:

Not that I’m aware of. You’d have to approximate the curve using a series of short linear traces. What’s the use case?

In order to curve a line trace it can be done in steps with a series of insignificantly small line traces but that is an awful way to do it.
However we have spline components in Unreal that are perfect for the job.
Simply spawn a spline with the curve you want to trace, or dynamically create it and let the component do the work on the bezier curves, then check for overlaps.
Hope this helps.

1 Like

How do you check the overlap between the spline and a mesh? I need to know also the impact point coordinates.

1 Like