pieceMesh.boneWeights[0].weight0 = 0.0f;
pieceMesh.boneWeights[0].weight1 = 1.0f;
pieceMesh.boneWeights[0].weight2 = 0.0f;
pieceMesh.boneWeights[0].weight3 = 0.0f;
print(pieceMesh.boneWeights[0].weight0);
This outputs "0.6888725" which is the original bone weight. It should be zero. I don't know what's going wrong here. The docs say
>"Each vertex can be affected by up to 4 different bones. All 4 bone weights should sum up to 1."
so I gave weight1 1 but it doesn't look like that's the problem.
↧