Find objects overlapping a frustum
I would like the player to select objects in 3D space by drawing a selection rectangle (like in every RTS).
Now, since objects are in 3D that UI's rectangle is a frustum in the game's world. So I need to find objects which colliders overlap the said frustum. Is there an already present solution in UE for that? Alternatively if not I can of course present the frustum as 6 (or 4) planes and check if objects are on the correct side of all the planes. Is there a method to find objects on the positive side of a plane?
asked Feb 08 '16 at 11:54 AM in C++ Programming
So it seems there's no already-written function to that.
I think I'll go with the following solution:
Needs consistent orientation of the frustum's planes of course.
Here I'd also like to express my disappointment with the fact that FPlane inherits from FVector. A plane is not a vector.
answered Feb 09 '16 at 10:07 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here