I have a unit cube that’s applied to as a mesh and the mesh is scaled and rotated to ultimate size. So the mesh data is is “valid” as a target to use for the test.
I want to determine if the Vector3 is within that cubeoid… the cube can be rotated arbitrarily and I can’t rely on colision events I just need to check “is Vector3 inside this rotate cube.”
Is there a babylonjs utility function for such a thing… also if not … why not you slackers !!! (/s)
Ultimately I have the rotations/dimentions/center/pivot of the cube data in another structure, I just didn’t want to have to manually math that one out…
EDIT: I was trying to use mesh.getBoundingInfo() and intersectsPoint() - but this seems to not apply rotations to the test - and only uses min/max test. I noticed there’s a intersects() functions that takes a second bounding info and a precision mode… so I’m going to see if I can make a bounding info for a single point (doesn’t matter if it’s tiny cube to me)