VertexBoneAssignment()

Syntax

VertexBoneAssignment(#Mesh, SubMesh, VertexIndex, BoneIndex, Weight.f)
Description
Assign a vertex to a bone (the same vertex can be assigned to several bones: the sum of bone weight must be equals to 1). Once the vertex assignment is finished, FinishBoneAssignment() has to be called.

Parameters

#Mesh The mesh to use.
SubMesh The submesh to get the data from. The first submesh index is 0 (main mesh).
VertexIndex The vertex index. The first index is 0.
BoneIndex The bone index, in creation order. The first index is 0.
Weight The bone weight, must be between 0 and 1.

Return value

None.

See Also

FinishBoneAssignment()

Supported OS

All

<- FinishBoneAssignment() - Skeleton Index