Bounds¶
Represents a bounding box in 3D space.
Not newable
This object cannot be created by scripts using Instance.New().
Properties¶
Center : Vector3¶
Indicates the center point of the bounds.
Size : Vector3¶
Determines the size of the bounds.
Extents : Vector3¶
Indicates the extents of the bounds.
Start : Vector3¶
The origin point
End : Vector3¶
The ending point
Volume : number¶
Indicates the volume of the bounds.
Methods¶
New → Bounds¶
Parameters: ``
Creates a new Bounds object with the specified position and size.
New → Bounds¶
Creates a new Bounds object with the specified position and size.
ClosestPoint → Vector3¶
Calculates the closest point on the bounds to the specified point.
Contains → boolean¶
Returns whether the bounds contain the specified point.
Encapsulate → Bounds¶
Expands the bounds by the specified amount.
Expand → Bounds¶
Expands the bounds by the specified amount.
Intersects → boolean¶
Determines whether the bounds intersect with another bounds.
SetMinMax → Bounds¶
Sets the minimum and maximum points of the bounds.
Distance → number¶
Calculates the distance from the bounds to the specified point.
SqrDistance → number¶
Calculates the squared distance from the bounds to the specified point.