Checking if cuboid overlaps another cuboid?

Discussion in 'Plugin Development' started by milkymilkway, Aug 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    milkymilkway

    Any help? Just taking two minimums and maximums and seeing if they intersect?
     
  2. Assuming they are AABB cuboids, get the minimum and maximum corners of both, and check each vector against the other cuboids pair to see if it lies between them.
     
  3. Offline

    milkymilkway

    I did that, but that only works if the one I'm defining's minimum or maximum lies inside the Cuboid. What if a Cuboid literally takes up another Cuboid? If the minimum and maximums of the one I'm defining is completely out side of the one that is being overlapped. For example.



    Code:
    |---------------------------------|
    |                                |
    |                                |
    | |----------|                    |
    | |          |                    |
    | |          |                    |
    | |          |                    |
    | |          |                    |
    | |----------|                    |
    |                                |
    |---------------------------------|
     
  4. Offline

    Steffion

    6 for loops in Each other? And check if they equals?
    Of best way thoug :C
     
  5. Offline

    milkymilkway

    Can you give me some sample code?
     
Thread Status:
Not open for further replies.

Share This Page