Cone Trace

bump, would really help for AI sight, shotgun like abilities, or to trace for collision like a strong gust blowing a player away coming out of a small hole

FYI, most shotgun traces are done with scattered line traces, much like how the projectiles would really move.

Anyway, I finally decided to build a crappy cone trace. Should be performant enough if you don’t abuse it.
Just replace my custom trace method in the middle there with the default Unreal Multi Sphere Trace.

Ok, image was shrinked, try this blueprint pastebin linky.

For those interested, all I did was cut the path into segments, trace a small size in the first segment, then calculate the next segment’s size with basic trigonometry and trace at that size, and so on and so forth using a bigger sphere every time till we reach the end.

Keep the is Multitrace boolean false if you only want to find the first hit object and like to optimise stuff.

Still having this issue, but we dont really need a cone shape, we just need to be able to increase the sphere radius over time.

1 Like