Script API - v1.21.30
    Preparing search index...

    Bounding Box Utils is a utility class that provides a number of useful functions for the creation and utility of BoundingBox objects

    Index

    Methods

    • Beta

      Parameters

      Returns Vector3

      Note that BoundingBox objects represent whole blocks, so the center of boxes which have odd numbered bounds are not mathematically centered... i.e. a BoundingBox( 0,0,0 -> 3,3,3 ) would have a center of (1,1,1) (not (1.5, 1.5, 1.5) as expected)

      Calculate the center block of a given BoundingBox object.

      This function can't be called in read-only mode.

    • Beta

      Parameters

      Returns boolean

      Check to see if a BoundingBox is valid (i.e. (min <= max))

      This function can't be called in read-only mode.