ATTACHMENT_RIGID_Engine
{
Attach = CAR ENGINE
}

ATTACHMENT_RIGID_Exhaust1Hinge01
{
Attach = CAR EXHAUST
Constrain0 = Position.XYZ AMin 0 Amax 0 AStrength 10000 Bmin 0 Bmax 0 BStrength 10000
Constrain0 = Rotation.X AMin 0 AMax 1 BMin 0 BMax -1 AStrength 40 BStrength 100
Constrain0 = Rotation.Y AMin 0 AMax 5 BMin  -3 BMax -8 AStrength 40 BStrength 100
}

ATTACHMENT_RIGID_Exhaust1Latch01
{
Attach = CAR EXHAUST
Constrain0 = Position.XYZ AStrength 1000 BStrength 1000
Constrain0 = Rotation.XYZ AMin 0 AMax -5 AStrength 10 BMin 0 BMax 5 BStrength 10
DamageLevel0 = 1000
Constrain1 = Position.Z AMin -2 AMax -3 AStrength 60 BMin 0 BMax 1 BStrength 20
Constrain1 = Position.XY AMin -1000 AMax -1000 AStrength 1000 BMin 1000 BMax 0 BStrength 0
Constrain1 = Rotation.XYZ AMin 0 AMax -5 AStrength 10 BMin 0 BMax 5 BStrength 10
DamageLevel1 = 2000
Constrain2 = Position.Z AMin -25 AMax -30 AStrength 60 BMin 0 BMax 1 BStrength 20
Constrain2 = Position.XY AMin -1000 AMax -1000 AStrength 1000 BMin 1000 BMax 0 BStrength 0
Constrain2 = Rotation.XYZ AMin 0 AMax -5 AStrength 10 BMin 0 BMax 5 BStrength 10
DamageLevel2 = 5000
BreakAfter = ATTACHMENT_RIGID_MARKER_EXHAUST_LEFT
BreakAfter = ATTACHMENT_RIGID_MARKER_EXHAUST_CENTRE
}

ATTACHMENT_RIGID_Exhaust1Latch02
{
Attach = CAR EXHAUST
Constrain0 = Position.XYZ AStrength 1000 BStrength 1000
Constrain0 = Rotation.XYZ AMin 0 AMax -5 AStrength 10 BMin 0 BMax 5 BStrength 10
DamageLevel0 = 1000
Constrain1 = Position.Z AMin -2 AMax -3 AStrength 60 BMin 0 BMax 1 BStrength 20
Constrain1 = Position.XY AMin -1000 AMax -1000 AStrength 1000 BMin 1000 BMax 0 BStrength 0
Constrain1 = Rotation.XYZ AMin 0 AMax -5 AStrength 10 BMin 0 BMax 5 BStrength 10
DamageLevel1 = 2000
Constrain2 = Position.Z AMin -25 AMax -30 AStrength 60 BMin 0 BMax 1 BStrength 20
Constrain2 = Position.XY AMin -1000 AMax -1000 AStrength 1000 BMin 1000 BMax 0 BStrength 0
Constrain2 = Rotation.XYZ AMin 0 AMax -5 AStrength 10 BMin 0 BMax 5 BStrength 10
DamageLevel2 = 5000
BreakAfter = ATTACHMENT_RIGID_MARKER_EXHAUST_RIGHT
BreakAfter = ATTACHMENT_RIGID_MARKER_EXHAUST_CENTRE
}


///////////////////////////////////
///////////////////////////////////
//////////
//////////  FRONT BUMPER
//////////
///////////////////////////////////
///////////////////////////////////



ATTACHMENT_RIGID_FrontBumper1
{
Attach = CAR BUMPER_FRONT
BreakAfter = ATTACHMENT_RIGID_FrontBumper3
Radius = 0.4
DamageLevelMul = 2

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 30
Constrain1 = Position.X AMax 1 AMin 2 AStrength 0 BMin 2 BMax 3 BStrength 2
Constrain1 = Position.Y AMax -2 AMin 0 AStrength 0 BMin 0 BMax 2 BStrength 0
Constrain1 = Position.Z AMax -5 AMin -5 AStrength 0 BMin -5 BMax 0 BStrength 20
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 60
Constrain2 = Position.X AMax 2 AMin 3 AStrength 50 BMin 3 BMax 5 BStrength 10
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 0 BMax 0 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}

ATTACHMENT_RIGID_FrontBumper3
{
Attach = CAR BUMPER_FRONT
BreakAfter = ATTACHMENT_RIGID_FrontBumper1
Radius = 10.4
DamageLevelMul = 2

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 30
Constrain1 = Position.X AMax 1 AMin 2 AStrength 0 BMin 2 BMax 3 BStrength 2
Constrain1 = Position.Y AMax -2 AMin 0 AStrength 0 BMin 0 BMax 2 BStrength 0
Constrain1 = Position.Z AMax -5 AMin -5 AStrength 0 BMin -5 BMax 0 BStrength 20
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 60
Constrain2 = Position.X AMax 2 AMin 3 AStrength 10 BMin 3 BMax 5 BStrength 10
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 0 BMax 0 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}


ATTACHMENT_RIGID_FrontBumper2
{
Attach = CAR BUMPER_FRONT
BreakAfter = ATTACHMENT_RIGID_FrontBumper4
Radius = 10.4
DamageLevelMul = 2

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 30
Constrain1 = Position.X AMax 1 AMin 2 AStrength 0 BMin 2 BMax 3 BStrength 2
Constrain1 = Position.Y AMax -2 AMin 0 AStrength 0 BMin 0 BMax 2 BStrength 0
Constrain1 = Position.Z AMax -5 AMin -5 AStrength 0 BMin -5 BMax 0 BStrength 20
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 60
Constrain2 = Position.X AMax 2 AMin 3 AStrength 10 BMin 3 BMax 5 BStrength 10
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 0 BMax 0 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}

ATTACHMENT_RIGID_FrontBumper4
{
Attach = CAR BUMPER_FRONT
BreakAfter = ATTACHMENT_RIGID_FrontBumper3
Radius = 10.4
DamageLevelMul = 2

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 30
Constrain1 = Position.X AMax 1 AMin 2 AStrength 0 BMin 2 BMax 3 BStrength 2
Constrain1 = Position.Y AMax -2 AMin 0 AStrength 0 BMin 0 BMax 2 BStrength 0
Constrain1 = Position.Z AMax -5 AMin -5 AStrength 0 BMin -5 BMax 0 BStrength 20
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 60
Constrain2 = Position.X AMax 2 AMin 3 AStrength 10 BMin 3 BMax 5 BStrength 10
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 0 BMax 0 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}




///////////////////////////////////
///////////////////////////////////
//////////
//////////  REAR BUMPER
//////////
///////////////////////////////////
///////////////////////////////////

ATTACHMENT_RIGID_RearBumper1
{
Attach = CAR BUMPER_REAR
BreakAfter = ATTACHMENT_RIGID_RearBumper3
Radius = 10.4
DamageLevelMul = 4

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 10005
Constrain1 = Position.X AMax -1000.5 AMin -1 AStrength 30 BMin -1.5 BMax -3 BStrength 10
Constrain1 = Position.Y AMax -1 AMin -1 AStrength 0 BMin 1 BMax 1 BStrength 0
Constrain1 = Position.Z AMax -4 AMin -2 AStrength 5 BMin -2 BMax 0 BStrength 1
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 40000
Constrain2 = Position.X AMax 0 AMin -5 AStrength 15 BMin -5 BMax -10 BStrength 15
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 3 BMax 3 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}

ATTACHMENT_RIGID_RearBumper3
{
Attach = CAR BUMPER_REAR
BreakAfter = ATTACHMENT_RIGID_RearBumper1
Radius = 10.4
DamageLevelMul = 4

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 1500
Constrain1 = Position.X AMax -100.5 AMin -1 AStrength 30 BMin -1.5 BMax -3 BStrength 10
Constrain1 = Position.Y AMax -1 AMin -1 AStrength 0 BMin 1 BMax 1 BStrength 0
Constrain1 = Position.Z AMax -4 AMin -2 AStrength 5 BMin -2 BMax 0 BStrength 1
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 4000
Constrain2 = Position.X AMax 0 AMin -5 AStrength 15 BMin -5 BMax -10 BStrength 15
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 3 BMax 3 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}



ATTACHMENT_RIGID_RearBumper2
{
Attach = CAR BUMPER_REAR
BreakAfter = ATTACHMENT_RIGID_RearBumper4
Radius = 10.4
DamageLevelMul = 4

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 150
Constrain1 = Position.X AMax -100.5 AMin -1 AStrength 300 BMin -1.5 BMax -3 BStrength 10
Constrain1 = Position.Y AMax -1 AMin -1 AStrength 0 BMin 1 BMax 1 BStrength 0
Constrain1 = Position.Z AMax -4 AMin -2 AStrength 5 BMin -2 BMax 0 BStrength 1
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 400
Constrain2 = Position.X AMax 0 AMin -5 AStrength 105 BMin -5 BMax -10 BStrength 15
Constrain2 = Position.Y AMax -4 AMin -4 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -8 AMin -8 AStrength 0 BMin 3 BMax 3 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}

ATTACHMENT_RIGID_RearBumper4
{
Attach = CAR BUMPER_REAR
BreakAfter = ATTACHMENT_RIGID_RearBumper2
Radius = 10.4
DamageLevelMul = 4

Constrain0 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel0 = 150
Constrain1 = Position.X AMax -100.5 AMin -1 AStrength 30 BMin -1.5 BMax -3 BStrength 10
Constrain1 = Position.Y AMax -1 AMin -1 AStrength 0 BMin 1 BMax 1 BStrength 0
Constrain1 = Position.Z AMax -4 AMin -2 AStrength 5 BMin -2 BMax 0 BStrength 1
Constrain1 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 400
Constrain2 = Position.X AMax 0 AMin -5 AStrength 15 BMin -5 BMax -10 BStrength 15
Constrain2 = Position.Y AMax -4 AMin -40 AStrength 0 BMin 4 BMax 4 BStrength 0
Constrain2 = Position.Z AMax -80 AMin -8 AStrength 0 BMin 3 BMax 3 BStrength 0
Constrain2 = Rotation.XYZ AMax -360 AMin -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
}




//////////////////
//////////////////
////
////   DOORS
////
//////////////////
//////////////////

ATTACHMENT_RIGID_LeftDoorRearLatch
{
Attach = CAR DOOR_REAR_LEFT
DamageLevel0 = 10
Constrain0 = Position.XYZ AMin -105 AMax -105 BMin 15 BMax 105 AStrength 1000 BStrength 1000
Constrain0 = Rotation.XYZ AMin -360 AMax -360 BMin 360 BMax 360 AStrength 0 BStrength 0
}

ATTACHMENT_RIGID_LeftDoorLatch
{
Attach = CAR DOOR_LEFT
DamageLevel0 = 10
Constrain0 = Position.XYZ AMin -15 AMax -105 BMin 10 BMax 105 AStrength 1000 BStrength 1000
Constrain0 = Rotation.XYZ AMin -360 AMax -360 BMin 360 BMax 360 AStrength 0 BStrength 0
}

ATTACHMENT_RIGID_LeftDoorHinge1
{
Attach = CAR DOOR_LEFT
Constrain0 = Position.XYZ AStrength 100000 BStrength 100000
Constrain0 = Rotation.X AMin 0 AMax 10.25 BMin 0 BMax -10.25 AStrength 20 BStrength 750
}

ATTACHMENT_RIGID_LeftDoorHinge2
{
Attach = CAR DOOR_LEFT
Constrain0 = Position.XYZ AStrength 100000 BStrength 100000
Constrain0 = Rotation.X AMin 0 AMax 0.25 BMin 0 BMax -10.25 AStrength 20 BStrength 750
}

ATTACHMENT_RIGID_LeftDoorRearHinge1
{
Attach = CAR DOOR_REAR_LEFT
Constrain0 = Position.XYZ AStrength 100000 BStrength 100000
Constrain0 = Rotation.X AMin 0 AMax 0.25 BMin 0 BMax -0.25 AStrength 20 BStrength 75
}
ATTACHMENT_RIGID_LeftDoorRearHinge2
{
Attach = CAR DOOR_REAR_LEFT
Constrain0 = Position.XYZ AStrength 100000 BStrength 100000
Constrain0 = Rotation.X AMin 0 AMax 10.25 BMin 0 BMax -0.25 AStrength 20 BStrength 75
}

/////////////////

ATTACHMENT_RIGID_RightDoorLatch
{
Attach = CAR DOOR_RIGHT
DamageLevel0 = 10
Constrain0 = Position.XYZ AMin -10 AMax -10 BMin 10 BMax 10 AStrength 1000 BStrength 1000
Constrain0 = Rotation.XYZ AMin -360 AMax -360 BMin 360 BMax 360 AStrength 0 BStrength 0
}

ATTACHMENT_RIGID_RightDoorRearLatch
{
Attach = CAR DOOR_REAR_RIGHT
DamageLevel0 = 10
Constrain0 = Position.XYZ AMin -10 AMax -10 BMin 10 BMax 10 AStrength 1000 BStrength 1000
Constrain0 = Rotation.XYZ AMin -360 AMax -360 BMin 360 BMax 360 AStrength 0 BStrength 0
}

ATTACHMENT_RIGID_RightDoorHinge1
{
Attach = CAR DOOR_RIGHT
Constrain0 = Position.XYZ AStrength 1000 BStrength 1000
Constrain0 = Rotation.X AMin 0 AMax -0.25 BMin 0 BMax 0.25 AStrength 500 BStrength 10
Constrain0 = Rotation.YZ AMin -360 AMax -360 BMin 360 BMax 360
}
ATTACHMENT_RIGID_RightDoorHinge2
{
Attach = CAR DOOR_RIGHT
Constrain0 = Position.XYZ AStrength 1000 BStrength 1000
Constrain0 = Rotation.X AMin 0 AMax -0.25 BMin 0 BMax 0.25 AStrength 500 BStrength 10
Constrain0 = Rotation.YZ AMin -360 AMax -360 BMin 360 BMax 360
}

ATTACHMENT_RIGID_RightDoorRearHinge1
{
Attach = CAR DOOR_REAR_RIGHT
Constrain0 = Position.XYZ AStrength 100000 BStrength 100000
Constrain0 = Rotation.X AMin 0 AMax -0.25 BMin 0 BMax 0.25 AStrength 500 BStrength 10
Constrain0 = Rotation.YZ AMin -360 AMax -360 BMin 360 BMax 360
}
ATTACHMENT_RIGID_RightDoorRearHinge2
{
Attach = CAR DOOR_REAR_RIGHT
Constrain0 = Position.XYZ AStrength 100000 BStrength 100000
Constrain0 = Rotation.X AMin 0 AMax -0.25 BMin 0 BMax 0.25 AStrength 500 BStrength 10
Constrain0 = Rotation.YZ AMin -360 AMax -360 BMin 360 BMax 360
}


//////////////////
//////////////////
////
////   MIRRORS
////
//////////////////
//////////////////

ATTACHMENT_RIGID_LeftMirror
{
Attach = DOOR_LEFT SIDE_MIRROR_LEFT
DamageLevel0 = 5
Constrain1 = Rotation.Y AMin -30 AMax 0 AStrength 20 BMin -3 BMax -10  BStrength 20
DamageLevel1 = 12
Constrain2 = Rotation.Y AMin -45 AMax -20 AStrength 20 BMin -45 BMax -75  BStrength 50
DamageLevel2 = 20
}

ATTACHMENT_RIGID_RightMirror
{
Attach = DOOR_RIGHT SIDE_MIRROR_RIGHT
DamageLevel0 = 5
Constrain1 = Rotation.Y AMin -30 AMax 0 AStrength 20 BMin -3 BMax -10  BStrength 20
DamageLevel1 = 12
Constrain2 = Rotation.Y AMin -45 AMax -20 AStrength 20 BMin -45 BMax -75  BStrength 50
DamageLevel2 = 20
}



////////////////////////////////////
///////////////////////// FENDERS
////////////////////////////////////

//////////RIGHT

ATTACHMENT_RIGID_RightFender1
{
Attach = CAR FENDER_FRONT_RIGHT
Constrain0 = Rotation.XY AMin -3 AMax 0 AStrength 50 BMin -3 BMax -6 BStrength 50
Constrain1 = Rotation.XY AMin -3 AMax 0 AStrength 50 BMin -3 BMax -6 BStrength 50
Constrain2 = Rotation.XY AMin -3 AMax 0 AStrength 50 BMin -3 BMax -6 BStrength 50
BreakInRoll = 1
DamageLevel2 = 20
BreakAfter = ATTACHMENT_RIGID_RightFender2
BreakAfter = ATTACHMENT_RIGID_RightFender3
}

ATTACHMENT_RIGID_RightFender2
{
Attach = CAR FENDER_FRONT_RIGHT
Constrain0 = Rotation.X AMin -3 AMax 0 AStrength 50 BMin -3 BMax -6 BStrength 50
Constrain1 = Rotation.X AMin -3 AMax 0 AStrength 50 BMin -3 BMax -6 BStrength 50
Constrain2 = Rotation.X AMin -3 AMax 0 AStrength 50 BMin -3 BMax -6 BStrength 50
BreakInRoll = 1
DamageLevel2 = 20
BreakAfter = ATTACHMENT_RIGID_RightFender1
BreakAfter = ATTACHMENT_RIGID_RightFender3
}

ATTACHMENT_RIGID_RightFender3
{
Attach = CAR FENDER_FRONT_RIGHT
DamageLevel0 = 20
Constrain1 = Position.Y AMin 0.5 AMax 0 AStrength 0 BMin 0.5 BMax 1 BStrength 0
Constrain1 = Position.X AMin -1000 AMax -1000 AStrength 0 BMin 1000 BMax 1000 BStrength 0
Constrain1 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 50
Constrain2 = Position.Y AMin 2 AMax 0 AStrength 0 BMin 2 BMax 4 BStrength 0
Constrain2 = Position.X AMin -1000 AMax -1000 AStrength 0 BMin 1000 BMax 1000 BStrength 0
Constrain2 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 100
}

//////////LEFT

ATTACHMENT_RIGID_LeftFender1
{
Attach = CAR FENDER_FRONT_LEFT
Constrain0 = Rotation.X AMin 3 AMax 0 AStrength 50 BMin 3 BMax 6 BStrength 50
Constrain1 = Rotation.X AMin 3 AMax 0 AStrength 50 BMin 3 BMax 6 BStrength 50
Constrain2 = Rotation.X AMin 3 AMax 0 AStrength 50 BMin 3 BMax 6 BStrength 50
BreakInRoll = 1
DamageLevel2 = 20
BreakAfter = ATTACHMENT_RIGID_LeftFender2
BreakAfter = ATTACHMENT_RIGID_LeftFender3
}

ATTACHMENT_RIGID_LeftFender2
{
Attach = CAR FENDER_FRONT_LEFT
Constrain0 = Rotation.X AMin 3 AMax 0 AStrength 50 BMin 3 BMax 6 BStrength 50
Constrain1 = Rotation.X AMin 3 AMax 0 AStrength 50 BMin 3 BMax 6 BStrength 50
Constrain2 = Rotation.X AMin 3 AMax 0 AStrength 50 BMin 3 BMax 6 BStrength 50
BreakInRoll = 1
DamageLevel2 = 20
BreakAfter = ATTACHMENT_RIGID_LeftFender1
BreakAfter = ATTACHMENT_RIGID_LeftFender3
}

ATTACHMENT_RIGID_LeftFender3
{
Attach = CAR FENDER_FRONT_LEFT
DamageLevel0 = 20
Constrain1 = Position.Y AMin -0.5 AMax 0 AStrength 0 BMin -0.5 BMax -1 BStrength 0
Constrain1 = Position.XZ AMin -1000 AMax -1000 AStrength 0 BMin 1000 BMax 1000 BStrength 0
Constrain1 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 50
Constrain2 = Position.Y AMin -2 AMax 0 AStrength 0 BMin -2 BMax -4 BStrength 0
Constrain2 = Position.XZ AMin -1000 AMax -1000 AStrength 0 BMin 1000 BMax 1000 BStrength 0
Constrain2 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 100
}

/////////////////
/////////////////
/////////////////


ATTACHMENT_RIGID_Spoiler1
{
Attach = TRUNK SPOILER
DamageLevel2 = 30
BreakAfter = ATTACHMENT_RIGID_MARKER_SPOILER
BreakAfter = ATTACHMENT_RIGID_Spoiler2
}
ATTACHMENT_RIGID_Spoiler2
{
Attach = TRUNK SPOILER
DamageLevel2 = 30
BreakAfter = ATTACHMENT_RIGID_Spoiler1
BreakAfter = ATTACHMENT_RIGID_MARKER_SPOILER
}


/////////////////////////
/////////////////////////
/////
///// HOOD AND TRUNK
/////
/////////////////////////
/////////////////////////

ATTACHMENT_RIGID_HoodHinge1
{
Attach = CAR HOOD
Constrain0 = Rotation.X AMin -10 AMax 0 AStrength 5 BMin -40 BMax -60 BStrength 50
Constrain1 = Rotation.X AMin -10 AMax 0 AStrength 5 BMin -40 BMax -60 BStrength 50
Constrain2 = Rotation.X AMin -10 AMax 0 AStrength 5 BMin -40 BMax -60 BStrength 50
DamageLevel2 = 20
BreakInRoll = 1
BreakAfter = ATTACHMENT_RIGID_HoodHinge2
BreakAfter = ATTACHMENT_RIGID_HoodLatch
}

ATTACHMENT_RIGID_HoodHinge2
{
Attach = CAR HOOD
Constrain0 = Rotation.X AMin -10 AMax 0 AStrength 5 BMin -40 BMax -60 BStrength 50
Constrain1 = Rotation.X AMin -10 AMax 0 AStrength 5 BMin -40 BMax -60 BStrength 50
Constrain2 = Rotation.X AMin -10 AMax 0 AStrength 5 BMin -40 BMax -60 BStrength 50
DamageLevel2 = 20
BreakInRoll = 1
BreakAfter = ATTACHMENT_RIGID_HoodHinge1
BreakAfter = ATTACHMENT_RIGID_HoodLatch
}

ATTACHMENT_RIGID_HoodLatch
{
Attach = CAR HOOD
DamageLevel0 = 30
Constrain1 = Position.Z AMin 1 AMax 0 AStrength 0 BMin 1 BMax 3 BStrength 0
Constrain1 = Position.XY AMin -20 AMax -20 AStrength 0 BMin 20 BMax 20 BStrength 0
Constrain1 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 50
Constrain2 = Position.Z AMin 5 AMax 0 AStrength 10 BMin 5 BMax 20 BStrength 0
Constrain2 = Position.XY AMin -20 AMax -20 AStrength 0 BMin 20 BMax 20 BStrength 0
Constrain2 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 70
ReportThreshold2 = 0.75
ReportParticle = ATTACHMENT_RIGID_HoodLatch
Radius = 0.50
WindDownForce = -5
}

//////////


ATTACHMENT_RIGID_TrunkHinge1
{
Attach = CAR TRUNK
Constrain0 = Rotation.X AMin 15 AMax 0 AStrength 5 BMin 40 BMax 45 BStrength 50
Constrain1 = Rotation.X AMin 15 AMax 0 AStrength 5 BMin 40 BMax 45 BStrength 50
Constrain2 = Rotation.X AMin 15 AMax 0 AStrength 5 BMin 40 BMax 45 BStrength 50
DamageLevel2 = 20
BreakInRoll = 1
BreakAfter = ATTACHMENT_RIGID_TrunkHinge2
BreakAfter = ATTACHMENT_RIGID_TrunkLatch
}

ATTACHMENT_RIGID_TrunkHinge2
{
Attach = CAR TRUNK
Constrain0 = Rotation.X AMin 15 AMax 0 AStrength 5 BMin 25 BMax 45 BStrength 20
Constrain1 = Rotation.X AMin 15 AMax 0 AStrength 5 BMin 25 BMax 45 BStrength 20
Constrain2 = Rotation.X AMin 15 AMax 0 AStrength 5 BMin 25 BMax 45 BStrength 20
DamageLevel2 = 20
BreakInRoll = 1
BreakAfter = ATTACHMENT_RIGID_TrunkHinge1
BreakAfter = ATTACHMENT_RIGID_TrunkLatch
}

ATTACHMENT_RIGID_TrunkLatch
{
Attach = CAR TRUNK
DamageLevel0 = 30
Constrain1 = Position.Z AMin 2 AMax 0 AStrength 5 BMin 2 BMax 4 BStrength 0
Constrain1 = Position.YX AMin -1000 AMax -1000 AStrength 0 BMin 1000 BMax 1000 BStrength 0
Constrain1 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel1 = 40
Constrain2 = Position.Z AMin 6 AMax 0 AStrength 7 BMin 7 BMax 15 BStrength 0
Constrain2 = Position.YX AMin -1000 AMax -1000 AStrength 0 BMin 1000 BMax 1000 BStrength 0
Constrain2 = Rotation.XY AMin -360 AMax -360 AStrength 0 BMin 360 BMax 360 BStrength 0
DamageLevel2 = 1000
WindDownForce = 6
}



///////////////////////////////////////
///////////////////////////////////////

ATTACHMENT_RIGID_Roof1
{
Attach = CAR ROOF
Radius = 1000.25
}
ATTACHMENT_RIGID_Roof2
{
Attach = CAR ROOF
Radius = 1000.25
}
ATTACHMENT_RIGID_Roof3
{
Attach = CAR ROOF
Radius = 1000.25
}


ATTACHMENT_RIGID_MARKER_LICENSE_PLATE_REAR
{
DamageLevel2 = 600
}

ATTACHMENT_RIGID_MARKER_ROOF_SCOOP
{
DamageLevel2 = 100
}

