Vector3: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer whoops, copy error. |
>Mindraker |
||
Line 16: | Line 16: | ||
| <code>magnitude</code>|| number ||| the length of the vector | | <code>magnitude</code>|| number ||| the length of the vector | ||
|} | |} | ||
[[Category:ROBLOX Lua Objects]] |
Revision as of 12:39, 3 July 2008
A Vector3 has three values, an X ordinate, Y ordinate and Z ordinate. It represents a position in 3D space, and can be in World coordinates, Object coordinates, or anything that needs to have a set of three values in order to function.
All properties are read-only.
Property | Type | Description |
---|---|---|
x |
number | the x-coordinate |
y |
number | the y-coordinate |
z |
number | the z-coordinate |
unit |
Vector3 | a normalized copy of the vector |
magnitude |
number | the length of the vector |