1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Java 3D Bounding box fixing

Discussion in 'Programming/Internet' started by user97921, Oct 8, 2018.

  1. user97921

    user97921 Guest

    My player keeps sinking into objects when in right angle and when going to right way. It is hard to explain so I uploaded video about it on youtube. I am using min and max points to detect collision.

    if(minX1 <= maxX2 && maxX1 >= minX2 && minY1 <= maxY2 && maxY1 >= minY2 && minZ1 <= maxZ2 && maxZ1 >= minZ2) {

    return true;


    That code should be fine but somehow it doesn't work with my other stuff. Is there better easy way that I could detect collision using min and max points?

    I am checking collision on every update.

    Login To add answer/comment

Share This Page