Trouble compiling entity with animation

Hi there. I’m having a major issue with trying to compile my model. Heres the reference:

http://i.i.saifahmed3d.com/j/HSdI7.jpg

And heres the collision:

http://i.i.saifahmed3d.com/j/h2ZcO.jpg

And heres my compile code:



$Scale 6

$ModelName "entities/scissor_jack.mdl"

    $definebone "JOINT_scissorlift" "" 0.000000 -0.000000 0.000000 0.000000 0.000000 89.999983 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_right_1" "JOINT_scissorlift" 0.000000 3.174030 5.112732 -0.000000 0.000000 41.025668 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_right_2" "JOINT_right_1" 0.000000 18.041607 18.078548 -0.000000 0.000000 -81.097241 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_right_3" "JOINT_right_2" 0.000000 18.078547 -18.041601 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_left_1" "JOINT_scissorlift" 0.000000 3.174030 -5.112732 -0.000000 0.000000 -41.025668 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_left_2" "JOINT_left_1" 0.000000 18.041607 -18.078550 -0.000000 0.000000 81.097241 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_left_3" "JOINT_left_2" 0.000000 18.078548 18.041605 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_middlebar" "JOINT_scissorlift" 0.000000 4.807044 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
    $definebone "JOINT_clamp" "JOINT_scissorlift" 0.000000 7.125738 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000

$BodyGroup "scissor_jack"
{
	studio "sc_reference.smd"
}

$SurfaceProp "Metal"

$Contents "solid"

$MaxEyeDeflection 90

$CDMaterials "models\entities\"

$Sequence "idle" {
	"sc_reference.smd"
}

$Sequence "open" {
	"scissor_jack_anims\open.smd"
	fadein 0.1
	fadeout 0.1
	node "Open"
	fps 80
}

$Sequence "close" {
	"scissor_jack_anims\close.smd"
	fadein 0.1
	fadeout 0.1
	node "Close"
	fps 80
}

$collisionjoints "sc_physics.smd"
{
	$mass			115.0
	$inertia		2.00
	$damping		0.01
	$rotdamping		0.40
	$rootbone		"JOINT_scissorlift"
	
	//$concaveperjoint
	$noselfcollisions
	
	$jointconstrain		"JOINT_scissorlift"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_scissorlift"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_scissorlift"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_right_1"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_right_1"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_right_1"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_right_2"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_right_2"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_right_2"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_right_3"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_right_3"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_right_3"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_left_1"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_left_1"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_left_1"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_left_2"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_left_2"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_left_2"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_left_3"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_left_3"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_left_3"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_middlebar"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_middlebar"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_middlebar"	z fixed	0.00 0.00 0.00	
	
	$jointconstrain		"JOINT_clamp"	x fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_clamp"	y fixed	0.00 0.00 0.00
	$jointconstrain		"JOINT_clamp"	z fixed	0.00 0.00 0.00	

}


My issue is that whenever I spawn this ingame, the joints are all flapping about even though I’ve constrained them to not have any movement unless the animated sequence is called. Heres how the phys model should work:
https://streamable.com/0asej

I understand that my phys model has parts where it clips so thats why I added the $noselfcollisions tag but this is how it looks and spawns ingame:
https://streamable.com/xaqzj

Like i dont understand why this is happening. I need the joints to stay still and not move nor should it interlock with each other and nor should it jiggle!!. Can anyone suggest anything? Thanks.

Try removing the $definebone lines, in my experience they messed up the model most of the time.

Tried removing it but still nothing. The phys mesh is a bit too detailed but even if i simplified the mesh, the joints would still be jiggling about even though I’ve constrained them :confused:

Can you give me the files for it? I’ll take a look at it in detail

I’ve pmed you everything