Coordinate: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</code>" to "</SyntaxHighlight>" |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" |
||
Line 5: | Line 5: | ||
You can see this by putting into the [[Command Bar]] | You can see this by putting into the [[Command Bar]] | ||
<code>print(Vector3.new(1, 2, 3))</ | <code>print(Vector3.new(1, 2, 3))</syntaxhighlight> | ||
This results in: | This results in: | ||
<code>1 2 3</ | <code>1 2 3</syntaxhighlight> | ||
Which is the Vector of the coordinates. | Which is the Vector of the coordinates. |
Latest revision as of 05:41, 27 April 2023
A Coordinate is a location on a graph, denoted by a point. In order to describe where something is in Roblox you need to have 3 coordinates, one for the X axis, one for the Y axis, and one for the Z axis.
These are normally arranged into a Vector, a combination of an X, Y and Z coordinate.
You can see this by putting into the Command Bar
print(Vector3.new(1, 2, 3))</syntaxhighlight>
This results in:
1 2 3</syntaxhighlight>
Which is the Vector of the coordinates.
See Also