Data type
Region3
Describes a rectangular volume in 3D space.
About Region3
The Region3 data type describes a volume in 3D space similar to an
axis-aligned rectangular prism. It is commonly used with Terrain
functions and functions that detect parts within a volume, such as
WorldRoot.FindPartsInRegion3.
The prism's center is accessible using the Region3.CFrame property
and the prism's size is accessible through the Region3.Size
property. Note that the components of this property may be negative.
The Region3.ExpandToGrid method returns a new Region3
whose bounds comply with a provided resolution value. The resulting volume may
be equal to or greater than the original volume, but never smaller.
See also:
Constructors 1
Region3.new
(min: Vector3, max: Vector3)Returns a newRegion3using the provided vectors as boundaries.
Properties 2
CFrame
: CFrameThe center location and rotation of theRegion3.The
CFramerepresenting the center position and orientation of theRegion3. The position component is the midpoint of theminandmaxvectors passed toRegion3.new, computed as(min + max) / 2. Because aRegion3is always axis-aligned, the rotation component of the returnedCFrameis always the identity (no rotation). This property is read-only.Size
: Vector3The 3D size of theRegion3.The size of the
Region3as aVector3, equal tomax - minfrom the constructor arguments. Individual components may be negative if the corresponding component ofminis greater thanmaxin the call toRegion3.new. This property is read-only.
Methods 1
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.