Skip to main content

Bounds

info
  • This class is only available on LocalAvatarScripts and LocalScripts

Represents an axis aligned bounding box.

Instance Properties

Property NameProperty TypeDescription
centerfloat3The center of the bounding box
sizefloat3The total size of the box
extentsfloat3The extents of the bounding box
minfloat3The minimal point of the box
maxfloat3The maximal point of the box

Instance Methods

Method NameReturn TypeDescription
SetMinMaxvoidSets the bounds to the min and max value of the box
EncapsulatevoidGrows the bounds to include the point
ExpandvoidExpand the bounds by increasing its size by amount along each side
IntersectsboolChecks if another bounding box intersects with this bounding box
IntersectRayboolChecks if the ray intersects this bounding box
ContainsboolChecks if the point is contained in the bounding box
SqrDistancefloatGets the smallest squared distance between the point and this bounding box
ClosestPointfloat3Gets the closest point on the bounding box