More notes...
Current(Broken) system:
Ragdoll object created - go to EditType 3, add root bone for limb 1, parent 0.
Create bone - parent is bone 1(root). Delete existing body for bone, get data for offsets, add ragdoll bone. This only deletes bones' bodies and does not remove existing bones, just renumbers each. Crashes entire program after a few bones are created.
To do:
Ragdoll object created, create CompObj(1) body.
Similar to compound collision mode, each new "bone" is a CompObj index, and no ragdoll bones are created.
Check button - need a CompData array to store collision data for each bone. Destroy any existing ragdoll bodies, then destroy ragdoll container. Create new container, iterate through CompObj bodies and create a bone for each using its compdata. For child bones, subtract the offset and rotation of the parent bones to change to local values.
Need - swap axes button set - xy, xz, yz, -x, -y, -z for easier adjustment after check.
Fix - creating child bones does not resort list - ?
Floarble.