non-gon
    Preparing search index...

    Class ProximityQuery3D

    Index

    Constructors

    Methods

    • Checks for intersection between two 3D AABBs.

      Parameters

      • positionAABB1: Vector3

        Center position of the first AABB.

      • positionAABB2: Vector3

        Center position of the second AABB.

      • length1: number

        Length of the first AABB along the X-axis.

      • length2: number

        Length of the second AABB along the X-axis.

      • width1: number

        Width of the first AABB along the Y-axis.

      • width2: number

        Width of the second AABB along the Y-axis.

      • height1: number

        Height of the first AABB along the Z-axis.

      • height2: number

        Height of the second AABB along the Z-axis.

      Returns boolean

      True if the AABBs intersect, false otherwise.

    • Checks if two cylinders intersect in 3D space using the Chittawadigi method.

      Parameters

      Returns boolean

      True if the cylinders intersect, false otherwise.

    • Checks for intersection between two 3D Oriented Bounding Boxes (OBBs) using the Separating Axis Theorem (SAT).

      Parameters

      • normals: Vector3[]

        Array of separating axis normals to test.

      • corners1: Vector3[]

        Vertices of the first OBB.

      • corners2: Vector3[]

        Vertices of the second OBB.

      Returns boolean

      True if the OBBs intersect, false otherwise.

    • Checks if a 3D point lies within a 3D Axis-Aligned Bounding Box (AABB).

      Parameters

      • positionPoint: Vector3

        The point's 3D position.

      • positionAABB: Vector3

        The center position of the AABB.

      • lengthAABB: number

        Length of the AABB along the X-axis.

      • heightAABB: number

        Height of the AABB along the Z-axis.

      • widthAABB: number

        Width of the AABB along the Y-axis.

      Returns boolean

      True if the point lies inside the AABB, false otherwise.

    • Checks if a point is inside a sphere in 3D space.

      Parameters

      Returns boolean

      True if the point is inside the sphere, false otherwise.

    • Checks if a sphere intersects with a 3D AABB.

      Parameters

      • positionAABB: Vector3

        The center position of the AABB.

      • lengthAABB: number

        Length of the AABB along the X-axis.

      • heightAABB: number

        Height of the AABB along the Z-axis.

      • widthAABB: number

        Width of the AABB along the Y-axis.

      • positionSphere: Vector3

        The center position of the sphere.

      • sphereRadius: number

        Radius of the sphere.

      Returns boolean

      True if the sphere intersects the AABB, false otherwise.

    • Determines whether two spheres in 3D space intersect.

      Parameters

      • positionSphere1: Vector3

        Center position of the first sphere.

      • positionSphere2: Vector3

        Center position of the second sphere.

      • sphereRadius1: number

        Radius of the first sphere.

      • sphereRadius2: number

        Radius of the second sphere.

      Returns boolean

      True if the spheres intersect, false otherwise.