1

I'm supposed to check for AABB collision between two pyramids. I looked up AABB, simple enough to check. I was given the vertices for both pyramids, as well as 4 world positions. I am supposed to calculate the AABB collision box, which I've done, and then see if they pyramids collide or not. The part that I'm confused on is what are the world coords for? There is 4 per pyramid, so they aren't vertices.. I can figure out whether or not they collide based on the vertices, so what are the world positions for?

genpfault
  • 51,148
  • 11
  • 85
  • 139
john
  • 77
  • 2
  • 4
  • Are you sure the 4 world positions aren't the corners of the AABB? – mpen Nov 16 '10 at 06:23
  • 1
    Duplicate of http://stackoverflow.com/questions/3631437/cube-on-cube-collision-detection-algorithm Or at least the title is. –  Nov 16 '10 at 06:23

2 Answers2

0

Surely the world positions would represent the vector transforms that indicate where the centre of the pyramids are in the world?

OJ.
  • 28,944
  • 5
  • 56
  • 71
0

Are you supposed to be writing an AABB sweep test? That would require you to know how the two pyramids are moving (hence your extra information).

Ben Jackson
  • 90,079
  • 9
  • 98
  • 150