As you see, point seems to be in box
but it says it isn’t.
My code is
I get scaled extent to account for component and actor scale, and then rotate it to account for rotation. Same values go for center and extent to draw debug and is point in box.
As you see, point seems to be in box
but it says it isn’t.
My code is
I get scaled extent to account for component and actor scale, and then rotate it to account for rotation. Same values go for center and extent to draw debug and is point in box.
Seems very strange that point is inside at x, y, z but still that function not working. Probably have to right my own
I was too tired to notice it, but lower x was higher than upper x. For calculating extent I should have taken abs:
Actually you can’t check if point is in box considering rotation because this functions checks if point is between points on axis and you can’t check that for rotated box:
I should have used physics and overlaps from the start
Another solution is to get point corrds in local box coordinates system?