Class OBBToleranceCollider

    • Constructor Detail

      • OBBToleranceCollider

        public OBBToleranceCollider​(long cPtr,
                                    boolean cMemoryOwn)
      • OBBToleranceCollider

        public OBBToleranceCollider()
        constructor
    • Method Detail

      • setTolerance

        public void setTolerance​(double tolerance)
        set the tolerance of the collider
        Parameters:
        tolerance - [in] meters
      • collides

        public boolean collides​(OBB obbA,
                                OBB obbB,
                                Transform3D aTb)
        test if obbA is closer than tolerance to obbB. The aTb transform describe
        obbB relative to obbA's coordinate frame. This method is approximate and the obb's
        may lie up to sqrt(tolerance^2+tolerance^2) away from each other.
      • collides

        public boolean collides​(OBB obbA,
                                OBB obbB,
                                Transform3D aTb,
                                double tolerance)
        test if obbA is closer than tolerance to obbB. The aTb transform describe
        obbB relative to obbA's coordinate frame. This method is approximate and the obb's
        may lie up to sqrt(tolerance^2+tolerance^2) away from each other.