From d8ecbe961fa5386eb679ffb7defdfd25a2b45327 Mon Sep 17 00:00:00 2001 From: Luk3 Date: Sat, 11 Dec 2021 22:51:30 -0300 Subject: [PATCH] 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. (cherry picked from commit bee0264faef606cf7a06dbd19f96a6d276dba0a5) --- tutorials/3d/procedural_geometry/arraymesh.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/3d/procedural_geometry/arraymesh.rst b/tutorials/3d/procedural_geometry/arraymesh.rst index 4bb5f0c2f..64181975c 100644 --- a/tutorials/3d/procedural_geometry/arraymesh.rst +++ b/tutorials/3d/procedural_geometry/arraymesh.rst @@ -24,8 +24,8 @@ PoolIntArray, etc.) for each type of information. - ``ARRAY_COLOR`` = 3 | PoolColorArray - ``ARRAY_TEX_UV`` = 4 | PoolVector2Array or PoolVector3Array - ``ARRAY_TEX_UV2`` = 5 | PoolVector2Array or PoolVector3Array -- ``ARRAY_BONES`` = 6 | PoolRealArray of groups of 4 floats or PoolIntArray of groups of 4 ints -- ``ARRAY_WEIGHTS`` = 7 | PoolRealArray of groups of 4 floats +- ``ARRAY_BONES`` = 6 | PoolRealArray of groups of 4 floats or PoolIntArray of groups of 4 ints. Each group lists indexes of 4 bones that affects a given vertex. +- ``ARRAY_WEIGHTS`` = 7 | PoolRealArray 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 | PoolIntArray The Array of vertices is always required. All the others are optional and will only be used if included.