Bounds of box, not finding any transform contained??

Hi there,
I have a box colliders bounds. On call, I want to check any object in these bounds via position.

if(boxBounds.Contains(pos)){
///ok!!
}

This is all fine and dandy except the call returns nothing. This despite there being many transforms inside the box.

Any ideas???

It’s not lying to you. The given Vector3 ‘pos’ isn’t inside boxBounds. I’m not really sure what kind of assistance you’re looking for in troubleshooting this issue. From the looks of your not particularly helpful screen capture it would appear that the box collider is sitting on top of the white circles - so if those are the positions you’re checking then the result isn’t surprising.

The box is lowered on the y. In theory the idea should work, correct?

I dunno - does it? :slight_smile: