Quantcast
Channel: Questions in topic: "weight"
Viewing all articles
Browse latest Browse all 136

I can't set the bone weights at runtime

$
0
0
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.

Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>