类 BoundingBoxUtils实验性

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

方法

  • 实验性

    参数

    返回 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.

    无法在只读模式下调用此函数,详见 WorldBeforeEvents