Axes: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Gordonrox24
moar links
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{CatUp|Data Types}}
{{Map|Scripting|Data Types}}


Axes is a data type that is used with [[ArcHandles]] to determine which axes on the brick have handles. The only constructor Axes has is new, to define a new Axes type.
{{type|Axes}} is a data type that is used with [[ArcHandles]] to determine which axes on the brick have handles. The only constructor {{type|Axes}} has is new, to define a new {{type|Axes}} type.


''Axes are also used in [[Vector3]] and [[CFrame]] values (X, Y and Z axes).''
''{{type|Axes}} are also used in {{type|Vector3}} and {{type|CFrame}} values (X, Y and Z axes).''


The code below would set all the Axes of the ArcHandles object on. The order that the elements are arranged does not matter, and if you do not wish to have a handle on a certain axis, you can simply omit the specific [[Enum]].
The code below would set all the Axes of the ArcHandles object on. The order that the elements are arranged does not matter, and if you do not wish to have a handle on a certain axis, you can simply omit the specific [[Enum]].
<pre>
<syntaxhighlight lang="lua">
workspace.ArcHandles.Axes = Axes.new(Enum.Axis.X, Enum.Axis.Y, Enum.Axis.Z)
Workspace.ArcHandles.Axes = Axes.new(Enum.Axis.X, Enum.Axis.Y, Enum.Axis.Z)
</pre>
</syntaxhighlight>


[[Category:Data Types]]
[[Category:Data types]]

Latest revision as of 06:07, 27 April 2023

Axes is a data type that is used with ArcHandles to determine which axes on the brick have handles. The only constructor Axes has is new, to define a new Axes type.

Axes are also used in Vector3 and CFrame values (X, Y and Z axes).

The code below would set all the Axes of the ArcHandles object on. The order that the elements are arranged does not matter, and if you do not wish to have a handle on a certain axis, you can simply omit the specific Enum.

Workspace.ArcHandles.Axes = Axes.new(Enum.Axis.X, Enum.Axis.Y, Enum.Axis.Z)