What's New in Director 8.5 > Controlling the 3D World > Vector math > Vector creation commands |  |

Vector creation commands

Use these functions to create vectors:

Function | Description | Returns
--- | --- | ---
`vector(x,y,z)` | Creates a vector from arguments representing all axes. | A vector object
`randomVector()` | Creates a vector describing a randomly chosen point on the surface of a unit sphere. Differs from `vector(random(10)/10.0`, `random(10)/10.0`, `random(10)/10.0)` because the `randomVector()` method always results in a unit vector. | A unit vector