hi,i want select multiple actor in my strategy game,i use draw rect for graphic ,and "use get actors in selection rectangle"for store actor in draw box.but it select actor outside my box.whats my wrong?
i found.why.beacuse my actor have large collision box and it select it
Well, simple mistake: you draw your rectangle from (SelectionStart.X, SelectionStart.Y, MousePosition.X - SelectionStart.X, MousePosition.Y - SelectionStart.Y) but you ask for the actors in the selection range (SelectionStart.X, SelectionStart.Y, MousePosition.X, MousePosition.Y)
Solution: as the “Second Point” of the GetActorsInSelectionRangle node, put the results of the substraction of MousePosition - SelectionStart
[EDIT]
It will be more clear with a screenshot: