diff --git a/doc/lua_api.md b/doc/lua_api.md index ee1f4060b..0b19bb53d 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -3825,6 +3825,8 @@ vectors are written like this: `(x, y, z)`: `vector.new(v)` does the same as `vector.copy(v)` * `vector.zero()`: * Returns a new vector `(0, 0, 0)`. +* `vector.random_direction()`: + * Returns a new vector of length 1, pointing into a direction chosen uniformly at random. * `vector.copy(v)`: * Returns a copy of the vector `v`. * `vector.from_string(s[, init])`: