# Isometric Bounding Box Algorithims

• 04-05-2004
leeor_net
Isometric Bounding Box Algorithims
Hi.

Can anybody help me with the basic algorithims for this sort of detection? I would really appreciate it.

Thanks!

Leeor...
• 04-06-2004
Salem
Have you searched using google yet?
• 04-06-2004
leeor_net
I have, actually. I really haven't found anything yet.

Leeor...
• 04-07-2004
quzah
So what exactly is your problem? How hard is it to make a boarder and add simple boundry checking?
Code:

```if( xposition+xmove <= lowerxbound || xposition+xmove >= upperxbound )     bounce( );```
Do the same thing with y. Then just decide how you want the box to bounce, and you're done. It's a fairly simple concept if you take a moment to think about a box moving around in a given boundry. The hard part is deciding how you want to handle speed and bounce. Really though, all that is up to you, so even that's not that hard.

Quzah.
• 04-07-2004
leeor_net
You seem very arogant for someone who can't read properly.

I know how to make a box bounce around the screen. How do you calculate an isometric BOUNDING box, not BOUNCING box.

If you don't know what an isometric view is, think about Age of Empires, X-COM, or StarCraft and you have an isometic engine.

Leeor...
• 04-08-2004
quzah
I can read just fine. I just don't see the how it becomes more complex just because it's isometric. It's still a box. It still has sides. They still can overlap the edge. You still make it bounce. I think you're over thinking it.

Quzah.
• 04-09-2004
vulcan_146
I think he means that he wants to know how to calculate the boundaries of an isometric box because they are boxes at angles.
• 04-10-2004
quzah
The same way you calculate it for non-isometric boxes. If you can measure the diagonal across a box, that's all you need to do. You could always draw a picture of it, measure it, and use the dimensions for your calculations if you can't do the math.

Quzah.