BoneWeight
BoneWeight is a struct used to store vertex and bone weight information.
typescript
OnStart(): void {
let boneWeight = new BoneWeight();
// Set weights
boneWeight.weight0 = 0.5;
boneWeight.weight1 = 0.3;
boneWeight.weight2 = 0.2;
// Set associated bone indices
boneWeight.index0 = 0;
boneWeight.index1 = 1;
boneWeight.index2 = 2;
}Constructors
BoneWeight.new ( ) |
| Create a BoneWeight struct. |
Instance Properties
BoneWeight.weight0 : number |
| Skinning weight of the first bone. |
BoneWeight.weight1 : number |
| Skin weight of the second bone. |
BoneWeight.weight2 : number |
| Skin weight of the third bone. |
BoneWeight.index0 : number |
| The index value of the first bone. |
BoneWeight.weight3 : number |
| Skin weight of the fourth bone. |
BoneWeight.index1 : number |
| The index value of the second bone. |
BoneWeight.index2 : number |
| The index value of the third bone. |
BoneWeight.index3 : number |
| The index value of the fourth bone. |
Instance Method
BoneWeight.Normalize ( ) : void |
| Normalize the information of bone weights. |
