From 3a76251bc39faea8c138d68686a0ef552181e28d Mon Sep 17 00:00:00 2001 From: Erich Schubert Date: Thu, 27 Jun 2024 14:28:45 +0200 Subject: [PATCH] add documentation to lua_api.md --- doc/lua_api.md | 2 ++ 1 file changed, 2 insertions(+) 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])`: