Search Unity

creating bone and skinnin on the fly

Discussion in 'Scripting' started by llavigne, Apr 20, 2008.

  1. llavigne

    llavigne

    Joined:
    Dec 27, 2007
    Posts:
    977
    I parkoured (jumping on walls) the doc and couldn't find the bone class. Is there a way to create a bone and add it to the skin of a mesh?
     
  2. ratamorph

    ratamorph

    Joined:
    Sep 2, 2007
    Posts:
    458
    Isn't that the characterJoint? I'm not sure about the skinning I think you'd have to write a shader for that.

    Also form my experience so far importing animations, the bones are imported as plain transforms, the animation holds all the other data I believe, the character uses a skinnedMeshRenderer instead of a meshMenderer, so you might wanna look into any scripting of the skinnedMeshRenderer you can find, I haven't looked.

    Character joints are used for ragdolls.