Commit 7bdc0e8c authored by Mark's avatar Mark

Document the Vector3 type

parent 7eb5efd3
title: Vector3
A Vector3 is an object used to represent coordinates in a three-dimensional space ([Vector2]({{< relref "" >}}) is used for two-dimensional space). The coordinates are described using three numbers, {{%var%}}X{{%/var%}}, {{%var%}}Y{{%/var%}}, and {{%var%}}Z{{%/var%}}. {{%var%}}X{{%/var%}} represents the horizontal position, {{%var%}}Y{{%/var%}} the vertical position, {{%var%}}Z{{%/var%}} the depth.
In Lua, Vector3 objects can be created with the `` function, which accepts as its arguments the values for {{%var%}}X{{%/var%}}, {{%var%}}Y{{%/var%}}, and {{%var%}}Z{{%/var%}}.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment