h1z1-server
    Preparing search index...

    Function isPosInRadiusWithY

    • Checks if a position is within a specified radius from another position in 3D space, taking into account the y-axis.

      Parameters

      • radius: number

        The radius to check.

      • position1: Float32Array

        The position of the first point.

      • position2: Float32Array

        The position of the second point.

      • y_radius: number

        The radius around the y-axis.

      Returns boolean

      A boolean indicating whether the second point is within the specified radius of the first point in both x-z and y axes.