OrientedBoundingBox

public void OrientedBoundingBox(Vector3d center, double width, double height, double depth)

Creates an oriented bounding box

Parameters

center

Center point of the box

width

Width of the box (X axis)

height

Height of the box (Y axis)

depth

Depth of the box (Z axis)


public void OrientedBoundingBox(Vector3d center, double width, double height, double depth, ModeledEntity entity)

Creates an oriented bounding box with scale support

Parameters

center

Center point of the box

width

Width of the box (X axis)

height

Height of the box (Y axis)

depth

Depth of the box (Z axis)

entity

Associated ModeledEntity for scale calculations


public void OrientedBoundingBox(Location location, double width, double height, double depth)

Creates an oriented bounding box from a Bukkit location and dimensions


public void OrientedBoundingBox(Location location, double width, double height, double depth, ModeledEntity entity)

Creates an oriented bounding box from a Bukkit location and dimensions with entity reference