|
![](/i/fill.gif) |
On 8/5/2013 4:43 AM, Le_Forgeron wrote:
>
> The test against 6 planes would work, and is easy if it is axis aligned.
> ...
> What I said was that extending the "smart" 2D triangle-based-tests to 3D
> are to be a nightmare.
>
Still not seeing why two planes wouldn't, see my "is it in the aquarium"
explanation from my reply to scott.
But, in any case, I think there may be a simpler solution, which, like
my original thought, only requires "adjusting" the location of the
object being tested for, by canceling its apparent rotation (or, rather,
getting it lined up so its where the box would be, if the box wasn't
rotated either), and, it doesn't require a box at all, just an angle
test, and a distance (which depends on the angle). It does require some
checking, to make sure they are actually within the allowed angles, but..
Hmm. Actually, now that I think of it, that also have issues.. I am
thinking I need to check the distance, as per "directly in front" of
something, like a big door, but the "center" might be, itself, several
meters over the ground, so.. I need draw a "wall" with a piece of chalk,
on string, attached to a fixed "center point", not just a line... Sigh..
Why does 3D have to get so complicated? lol
Post a reply to this message
|
![](/i/fill.gif) |