Hello,
i tried the newton ragdoll example - but i understand... nothing.
Is there no way to add the bones to allready existing joints (or something?)
`make the root bone!
`first make the collision object for the bone, in this case a box!
Col = NDB_NewtonCreateBox( 5.0*size#, 4.5*size#, 1.0*size# )
`now setup the bone itself... first setup a matrix for the bone's orientation
NDB_BuildMatrix 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
`then put the bone size in temp vector 1
NDB_SetVector 1, 0.0*size#, 4.5*size#, 1.0*size#
`now 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, gube, 0
`now make the chest bone!
Col = NDB_NewtonCreateBox( 4.5*size#, 4.5*size#, 3.0*size# )
`this matrix is a local matrix, in relation to the parent bone!
NDB_BuildMatrix 0.0, 0.0, 90.0, 0.0, 3.0, 0.0
NDB_SetVector 1, 4.5*size#, 4.5*size#, 3.0*size#
Chest = NDB_NewtonRagDollAddBone( RagDoll, RootBone, Col, mass#/11.0 )
NDB_BuildMatrix 0.0, 0.0, 90.0, 0.0, 3.0, 0.0
NDB_RagDollBoneSetOffset Chest
NDB_SetVector 1, 0.0,90.0,0.0
NDB_NewtonRagDollBoneSetLimits Chest,10.0,20.0,20.0
NDB_RagDollBoneSetDBProData Chest, gube, 9
Can somebody give me some hints?
It's adding to the bottom of my model atm (see screenshot)