About the skeleton

Added by wangxuan2730 over 3 years ago

When I load my character to the scene, half of the character is under the terrain. Why?
If I don't use the function bindSkin(), The Shape is on the terrain, But it can't animate the animation, Of cause!

Here is my code:
// create skeleton
entity.Skeleton = Scene->createSkeleton (part.Skeleton);
// create instance of the mesh character
for (int i = 0; i < MAX_PART; ++i) {
entity.Instance[i] = Scene->createInstance (part.Parts[i].Name);
//bind the skeleton to the instance
entity.Skeleton.bindSkin (entity.Instance[i]);
entity.Instance[i].show ();
}

The other code that most of them are using the snowballs2's code.