Cone hit cause action

Not sure how to word this. I can use a line trace to hit a crate and move it forward but I’m looking for an area of view. For instance I’m standing near the crate but not aiming directly at it and want to be able to push it in the direction I am aiming.

But I don’t want to use a sphere to detect as I only want to affect it if it is front of me and in view. Is it possible?

You can use cone as collider itself. E.g. import mesh of cone (lowpoly) and use it as collision. There is already cone mesh actually :slight_smile:
Or you can use sphere cast, but there will be some calculations. Starting of getting all actors that got hit into array, then in time interval filtering out actors by next criteria: hit time is not 1 or 0, distance from hit point to base line must be <= F(x), where F(x) = Time * Cone_base_size. Distance must be in Hit Result struct.
Some explanations:
Cone can be fitted in capsule, so if sphere cast makes capsule, then we can fit there a cone. Why hit time must not be 1 or 0? If do so, then there will be cylinder, hemispheres from start and end is gone. What is this function? Linear function, that indicates cone radius from it start to end: if time = 0, then radius = 0; if time = 1, then radius = Cone_base_size.