Documents ARRAY_BONES and ARRAY_WEIGHTS

This PR gives a little more details on how ARRAY_BONES and ARRAY_WEIGHTS are used on an ArrayMesh. This is based on @pycbouh 's explanation in #5434, and fixes that issue.
This commit is contained in:
Luk3
2021-12-11 22:51:30 -03:00
committed by GitHub
parent 9cdf87f7f2
commit bee0264fae

View File

@@ -24,8 +24,8 @@ PackedInt32Array, etc.) for each type of information.
- ``ARRAY_COLOR`` = 3 | PackedColorArray - ``ARRAY_COLOR`` = 3 | PackedColorArray
- ``ARRAY_TEX_UV`` = 4 | PackedVector2Array or PackedVector3Array - ``ARRAY_TEX_UV`` = 4 | PackedVector2Array or PackedVector3Array
- ``ARRAY_TEX_UV2`` = 5 | PackedVector2Array or PackedVector3Array - ``ARRAY_TEX_UV2`` = 5 | PackedVector2Array or PackedVector3Array
- ``ARRAY_BONES`` = 6 | PackedFloat32Array of groups of 4 floats or PackedInt32Array of groups of 4 ints - ``ARRAY_BONES`` = 6 | PackedFloat32Array of groups of 4 floats or PackedInt32Array of groups of 4 ints. Each group lists indexes of 4 bones that affects a given vertex.
- ``ARRAY_WEIGHTS`` = 7 | PackedFloat32Array of groups of 4 floats - ``ARRAY_WEIGHTS`` = 7 | PackedFloat32Array of groups of 4 floats. Each float lists the amount of weight an determined bone on ``ARRAY_BONES`` has on a given vertex.
- ``ARRAY_INDEX`` = 8 | PackedInt32Array - ``ARRAY_INDEX`` = 8 | PackedInt32Array
The Array of vertices is always required. All the others are optional and will only be used if included. The Array of vertices is always required. All the others are optional and will only be used if included.