ModelBoundingBox
Represents an axis-aligned bounding box (AABB) for a model part.
This record defines the spatial extent of a model element or group, used for hitboxes and collision detection.
Since
1.15.2
Parameters
minX
the minimum X coordinate
minY
the minimum Y coordinate
minZ
the minimum Z coordinate
maxX
the maximum X coordinate
maxY
the maximum Y coordinate
maxZ
the maximum Z coordinate
Functions
Link copied to clipboard
Returns a new bounding box with the same dimensions but centered at the origin (0,0,0).
Link copied to clipboard
Returns the center point of the bounding box as a vector.
Link copied to clipboard
Inverts the X and Z coordinates of the bounding box.
Link copied to clipboard
@NotNull
Creates a bounding box from two corner vectors.
Creates a bounding box centered at the origin with the given dimensions.
@NotNull
Creates a bounding box from explicit min/max coordinates.
Link copied to clipboard
Rotates the bounding box around its center.
Link copied to clipboard
Scales the bounding box by a uniform factor.