Hi.
Can anybody help me with the basic algorithims for this sort of detection? I would really appreciate it.
Thanks!
Leeor...
Hi.
Can anybody help me with the basic algorithims for this sort of detection? I would really appreciate it.
Thanks!
Leeor...
Have you searched using google yet?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I have, actually. I really haven't found anything yet.
Leeor...
So what exactly is your problem? How hard is it to make a boarder and add simple boundry checking?
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.Code:if( xposition+xmove <= lowerxbound || xposition+xmove >= upperxbound ) bounce( );
Quzah.
Hope is the first step on the road to disappointment.
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...
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.
Hope is the first step on the road to disappointment.
I think he means that he wants to know how to calculate the boundaries of an isometric box because they are boxes at angles.
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.
Hope is the first step on the road to disappointment.