Just by supplying the lower vector second you can give a region3 negative size and then it won’t be able to detect anything with FindPartsInRegion3. It really shouldn’t even be possible for size to be negative.
[quote] It would be nice if the region3 constructor did this automatically:
[/quote]
While I agree this is useful, it means that it’s being changed from what you actually set it to which is quite bad practice. Instead, it should be able to account for a negative region as Ethan says.
Bumping because this is still relevant and causing issues:
Region3s should not be able to be negative. At the very least, negative axis values should be clamped to 0. Considering nothing will ever rely on a negative Region3 (or at least shouldn’t), making this change should not break anything.
Maelstronomer’s post sounds like a good idea. I should be able to give a region3 constructor any two corner points and construct a region from that. Currently behavior is confusing for new developers and annoying to work around for everyone else (have to manually convert to min/max)