h1z1-server
    Preparing search index...

    Function getCubeBounds

    • Calculates the coordinates of the corners of a cube given the center point, angle, offset, euler rotation, bottom y, and top y values.

      Parameters

      • centerPoint: Float32Array

        The center point of the cube.

      • angle: number

        The angle of the cube.

      • offset: number

        The offset of the cube.

      • eulerRot: number

        The euler rotation of the cube.

      • bottomY: number

        The bottom y value of the cube.

      • topY: number

        The top y value of the cube.

      Returns CubeBounds

      An array containing the coordinates of the cube's corners.