Data type
Axes
The Axes data type is for the ArcHandles class to control which
rotation axes are currently enabled.
About Axes
The Axes data type contains a set of enabled 3D axes, represented
as a bitmask. It is used by the ArcHandles class through its
Axes property to control which rotation arc handles
are visible.
Axes exposes three axis properties (X, Y, Z) and six face
properties (Top, Bottom, Left, Right, Front, Back). Because faces
map to their corresponding axis, face pairs always share the same value: Top
and Bottom both reflect the Y axis, Left and Right both reflect the X
axis, and Front and Back both reflect the Z axis.
-- Enable arc handles for the X and Y axes only
local arcHandles = Instance.new("ArcHandles")
arcHandles.Axes = Axes.new(Enum.Axis.X, Enum.Axis.Y)
Like most data types on Roblox, the Axes data type is immutable:
you cannot assign to its properties once created.
Constructors 1
Axes.new
(axes: Tuple)Creates a new Axes using list of axes and/or faces. NormalIds (faces) are converted to the corresponding axes.
Properties 9
X
: boolWhether the X axis is enabled.Whether the X axis is enabled. Defaults to
falsewhen constructed viaAxes.new()with no arguments. This property is equivalent to bothLeftandRight, which also reflect the X axis state.Y
: boolWhether the Y axis is enabled.Whether the Y axis is enabled. Defaults to
falsewhen constructed viaAxes.new()with no arguments. This property is equivalent to bothTopandBottom, which also reflect the Y axis state.Z
: boolWhether the Z axis is enabled.Whether the Z axis is enabled. Defaults to
falsewhen constructed viaAxes.new()with no arguments. This property is equivalent to bothFrontandBack, which also reflect the Z axis state.Top
: boolWhether the top face is included.Whether the top face is included. This corresponds to the positive Y direction (
NormalId.Top) and is always equal to theYproperty. Defaults tofalse.Bottom
: boolWhether the bottom face is included.Whether the bottom face is included. This corresponds to the negative Y direction (
NormalId.Bottom) and is always equal to theYproperty. Defaults tofalse.Left
: boolWhether the left face is included.Whether the left face is included. This corresponds to the negative X direction (
NormalId.Left) and is always equal to theXproperty. Defaults tofalse.Right
: boolWhether the right face is included.Whether the right face is included. This corresponds to the positive X direction (
NormalId.Right) and is always equal to theXproperty. Defaults tofalse.Back
: boolWhether the back face is included.Whether the back face is included. This corresponds to the positive Z direction (
NormalId.Back) and is always equal to theZproperty. Defaults tofalse.Front
: boolWhether the front face is included.Whether the front face is included. This corresponds to the negative Z direction (
NormalId.Front) and is always equal to theZproperty. Defaults tofalse.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.