`make the root bone
`first make the collision object for the bone, in this case a box
Col=NDB_NewtonCreateBox(5.0*size#,5.0*size#,1.0*size#)
`now setup the bone itself... first setup a matrix for the bone's orientation
NDB_BuildMatrix -90.0,0.0,0.0,x#,y#,z#
`then put the bone size in temp vector 1
NDB_SetVector 1,5.0*size#,5.0*size#,1.0*size#
`make the bone
RootBone=NDB_NewtonRagDollAddbone(RagDoll,0,Col,mass#/11.0)
NDB_BuildMatrix 0.0,0.0,0.0,0.0,0.0,0.0
NDB_RagDollBoneSetOffset RootBone
NDB_RagDollBoneSetDBProData RootBone,model,2
`make pelvis bone
Col=NDB_NewtonCreateBox(25.0*size#,10.0*size#,20.0*size#)
`now setup the bone itself... first setup a matrix for the bone's orientation
NDB_BuildMatrix 0.0,0.0,0.0,limb position x(model,2),limb position y(model,2),limb position z(model,2)
`then put the bone size in temp vector 1
NDB_SetVector 1,25.0*size#,10.0*size#,20.0*size#
`make the bone
PelvisBone=NDB_NewtonRagDollAddbone(RagDoll,RootBone,Col,mass#/11.0)
NDB_BuildMatrix 0.0,0.0,0.0,limb position x(model,2),limb position y(model,2),limb position z(model,2)
NDB_RagDollBoneSetOffset PelvisBone
NDB_SetVector 1,0.0,90.0,0.0
NDB_NewtonRagDollBoneSetLimits PelvisBone,10.0,20.0,20.0
NDB_RagDollBoneSetDBProData PelvisBone,model,2
this code doesn't work correctly no matter what i do, when i set parent bone for pelvis to 0 the bone is positioned in right place but there is no movement of the ragdoll only that bone, when i set parent to root bone then pelvis bone is behind the character and is parallel with the root bone, it is supposed to be above it. how can i fix this problem i even looked in all examples regarding ragdoll in newton but i didn't found any solution. one more thing i made a human character and rigged it with biped in 3ds max