Axes: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875 No edit summary |
>SoulStealer9875 No edit summary |
||
Line 3: | Line 3: | ||
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 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 values (X, Y and Z axes).'' | ''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. | 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. |
Revision as of 12:23, 10 July 2011
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)