Thanks guys.
I created custom af decl but get a strange problem. Look at pics below please.
It's a primitime md5 model with few bones (origin, Bone1, Bone2, end) and primitive af decl with only two bodies.
Problem is: when I touched "bone_one" body (via 'drag entity' checkbox or g_dragEntity) it indicated "bone_one". When I touches "bone_two" body it also indicated "bone_one" and seems like drag point is pined to origin (not to choosed bone).
For vanilla af decls and models (e.g. env_gib_leftarm) bodies indicate and drag poins works right.
/*
Generated by the Articulated Figure Editor.
Do not edit directly but launch the game and type 'editAFs' on the console.
*/
articulatedFigure af_rect {
settings {
model "model_rect"
skin ""
friction 0.0099999998, 0.0099999998, 0.8000000119, 0.5
suspendSpeed 20, 30, 40, 60
noMoveTime 1
noMoveTranslation 10
noMoveRotation 10
minMoveTime -1
maxMoveTime -1
totalMass 80
contents corpse
clipMask solid, corpse
selfCollision 1
}
body "body_one" {
joint "origin"
mod orientation
model bone( joint( "origin" ), joint( "Bone2" ), 4 )
origin bonecenter( "origin", "Bone2" )
density 0.200000003
friction 0.0099999998, 0.0099999998, 0.8000000119
contents corpse
clipMask solid, corpse
selfCollision 1
containedJoints "*origin -*Bone2"
}
body "body_two" {
joint "Bone2"
mod orientation
model bone( joint( "Bone2" ), joint( "end" ), 5 )
origin bonecenter( "Bone2", "end" )
density 0.200000003
friction 0.0099999998, 0.0099999998, 0.8000000119
contents corpse
clipMask solid, corpse
selfCollision 1
containedJoints "*Bone2"
}
hinge "constr" {
body1 "body_one"
body2 "body_two"
anchor ( 0, 0, 16 )
axis bonedir( "Bone1", "Bone2" )
friction 0.5
limit 45, 0, 0
}
}