From 792fb13ac646dc8c2739e9f56a8fed566f4960f9 Mon Sep 17 00:00:00 2001 From: Zughy <63455151+Zughy@users.noreply.github.com> Date: Sat, 17 Aug 2024 15:16:37 +0200 Subject: [PATCH] Docs: Clarify rotation syntax of `model` formspec element (#14997) There has been confusion over this in the past, with users wrongly supplying rotation as `{x,y}`. --- doc/lua_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index 389ea73f2..6d486b56b 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -2861,14 +2861,14 @@ Elements * Requires formspec version >= 6. * See `background9[]` documentation for more information. -### `model[,;,;;;;;;;;]` +### `model[,;,;;;;;;;;]` * Show a mesh model. * `name`: Element name that can be used for styling * `mesh`: The mesh model to use. * `textures`: The mesh textures to use according to the mesh materials. Texture names must be separated by commas. -* `rotation {X,Y}` (Optional): Initial rotation of the camera. +* `rotation` (Optional): Initial rotation of the camera, format `x,y`. The axes are euler angles in degrees. * `continuous` (Optional): Whether the rotation is continuous. Default `false`. * `mouse control` (Optional): Whether the model can be controlled with the mouse. Default `true`.