mirror of
https://github.com/minetest/minetest.git
synced 2024-11-26 17:43:45 +01:00
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}`.
This commit is contained in:
parent
d3ca269c79
commit
792fb13ac6
@ -2861,14 +2861,14 @@ Elements
|
||||
* Requires formspec version >= 6.
|
||||
* See `background9[]` documentation for more information.
|
||||
|
||||
### `model[<X>,<Y>;<W>,<H>;<name>;<mesh>;<textures>;<rotation X,Y>;<continuous>;<mouse control>;<frame loop range>;<animation speed>]`
|
||||
### `model[<X>,<Y>;<W>,<H>;<name>;<mesh>;<textures>;<rotation>;<continuous>;<mouse control>;<frame loop range>;<animation speed>]`
|
||||
|
||||
* 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`.
|
||||
|
Loading…
Reference in New Issue
Block a user