I've been trying to get the Ragdoll system to work with fully boned mesh. I feel I'm getting quite close to getting it working but I'm not sure what the exact rules are.
(See Attachment) Each rigid body has been paired up with each bone but this is what I'm getting. I think it's the skeleton (it has null objects at the end of each bone which aren't paired up to rigid bodies.)
I have tried a much simpler setup on a segmented capsule and result is similar where the mesh doesn't match the behaviour of the rigid bodies. The code i'm using is below:-
function buildragdoll(ragdollobj,meshobj)
phy make rag doll 2, 2, 11
meshno=0
phy assign rag doll part 2, meshno, 10, 51
phy assign rag doll part 2, meshno, 11, 53
phy assign rag doll part 2, meshno, 12, 47
phy assign rag doll part 2, meshno, 13, 49
phy assign rag doll part 2, meshno, 18, 43
phy assign rag doll part 2, meshno, 19, 45
phy assign rag doll part 2, meshno, 20, 39
phy assign rag doll part 2, meshno, 21, 41
phy assign rag doll part 2, meshno, 22, 15
phy assign rag doll part 2, meshno, 29, 31
phy assign rag doll part 2, meshno, 30, 27
phy assign rag doll part 2, meshno, 31, 29
phy assign rag doll part 2, meshno, 32, 25
phy assign rag doll part 2, meshno, 39, 23
phy assign rag doll part 2, meshno, 40, 19
phy assign rag doll part 2, meshno, 41, 21
phy assign rag doll part 2, meshno, 42, 17
phy assign rag doll part 2, meshno, 45, 13
phy assign rag doll part 2, meshno, 46, 11
phy assign rag doll part 2, meshno, 47, 37
phy assign rag doll part 2, meshno, 48, 35
phy assign rag doll part 2, meshno, 49, 33
rem hide physics objects controlling ragdoll model
`for a =11 to 53
`if object exist(a) then hide object a
`next a
endfunction
Any suggestions?
BLACKMESA:SOURCE - mod for HL2 - Texture Artist
BIRTHSTAR:FRONTLINE - Texture & Environment Artist