Garry's Mod Wiki

BoneWeight

Description

A table structure representing the amount that a bone's transformation VMatrix should affect its vertex.

A single vertex may have multiple BoneWeight structures affecting it, but each BoneWeight structure belongs to only one vertex.

Added to the MeshVertex structure by util.GetModelMeshes

To find a bone's transformation VMatrix, see Entity:GetBoneMatrix

Members

number bone
The ID of the bone affecting the vertex.
number weight
A percentage between 0 and 1 indicating how much influence this bone's VMatrix should have on the the vertex.