# Thread: Isometric Bounding Box Algorithims

1. ## 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...

2. Have you searched using google yet?

3. I have, actually. I really haven't found anything yet.

Leeor...

4. 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.

5. 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...

6. 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.

7. I think he means that he wants to know how to calculate the boundaries of an isometric box because they are boxes at angles.

8. 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.