// AMG CLK63 Suspension Geometry File
// CTDP 2006 Physics File by Michael Borda & Sascha Grindau.  (c) 2007-2008 Cars & Tracks Development Project, (c) 2007-2008 Onlineracer.de, All Rights Reserved.
// Special thanks to www.simracingleague.de (SRL) --> Physics Betatester
//
//////////////////////////////////////////////////////////////////////////
// Conventions:
//
// +x = left
// +z = rear
// +y = up
// +pitch = nose up
// +yaw = nose right
// +roll = right
//
// [BODY]  - a rigid mass with mass and inertial properties
// [JOINT] - a ball joint constraining an offset of one body to an
//           offset of another body (eliminates 3 DOF)
// [HINGE] - a constraint restricting the relative rotations of two
//           bodies to be around a single axis (eliminates 2 DOF).
// [BAR]   - a constraint holding an offset of one body from an offset of
//           another body at a fixed distance (eliminates 1 DOF).
// [JOINT&HINGE] - both the joint and hinge constraints, forming the
//           conventional definition of a hinge (eliminates 5 DOF).
//
//////////////////////////////////////////////////////////////////////////

// Body including all rigidly attached parts (wings, barge boards, etc.)
[BODY]
name=body mass=(0.0) inertia=(0.0,0.0,0.0)
pos=(0.0,0.0,0.0) ori=(0.0,0.0,0.0)

// Front spindles
[BODY]
name=fl_spindle mass=(12.0) inertia=(0.0330,0.0312,0.0295)
pos=( 0.63483,-0.00133,-1.35) ori=(0.0,0.0,0.0)

[BODY]
name=fr_spindle mass=(12.0) inertia=(0.0330,0.0312,0.0295)
pos=(-0.63483,-0.00133,-1.35) ori=(0.0,0.0,0.0)

// Front wheels
[BODY]
name=fl_wheel mass=(28.8) inertia=(1.370,0.955,0.955)
pos=( 0.71095,0.0,-1.35) ori=(0.0,0.0,0.0)

[BODY]
name=fr_wheel mass=(28.8) inertia=(1.370,0.955,0.955)
pos=(-0.71095,0.0,-1.35) ori=(0.0,0.0,0.0)

// Rear spindles
[BODY]
name=rl_spindle mass=(13.0) inertia=(0.0370,0.0340,0.0310)
pos=( 0.62008,0.00527,1.35000) ori=(0.0,0.0,0.0)

[BODY]
name=rr_spindle mass=(13.0) inertia=(0.0370,0.0340,0.0310)
pos=(-0.62008,0.00527,1.35000) ori=(0.0,0.0,0.0)

// Rear wheels (includes half of rear-axle)
[BODY]
name=rl_wheel mass=(32.0) inertia=(1.520,1.000,1.000)
pos=( 0.71095,0.00527,1.35000) ori=(0.0,0.0,0.0)

[BODY]
name=rr_wheel mass=(32.0) inertia=(1.520,1.000,1.000)
pos=(-0.71095,0.00527,1.35000) ori=(0.0,0.0,0.0)

// Fuel in tank is not rigidly attached - it is attached with springs and
// dampers to simulate movement.  Properties are defined in the HDV file.
[BODY]
name=fuel_tank mass=(1.50) inertia=(1.0,1.0,1.0)
pos=(0.0,0.0,0.0) ori=(0.0,0.0,0.0)

// Driver's head is not rigidly attached, and it does NOT affect the vehicle
// physics.  Position is from the eyepoint defined in the VEH file, while
// other properties are defined in the head physics file.
[BODY]
name=driver_head mass=(6.0) inertia=(0.034,0.026,0.030)
pos=(0.0,0.0,0.0) ori=(0.0,0.0,0.0)


//////////////////////////////////////////////////////////////////////////
//
// Constraints
//
//////////////////////////////////////////////////////////////////////////

// Front wheel and spindle connections
[JOINT&HINGE]
posbody=fl_wheel negbody=fl_spindle pos=fl_wheel axis=( 0.71095,0.0,0.0)

[JOINT&HINGE]
posbody=fr_wheel negbody=fr_spindle pos=fr_wheel axis=(-0.71095,0.0,0.0)


// Front left suspension (2 A-arms + 1 steering arm = 5 links)
[BAR] // forward lower arm
posbody=body negbody=fl_spindle pos=( 0.28890,-0.11656,-1.40000) neg=( 0.64242,-0.11136,-1.35100)

[BAR] // rearward lower arm
name=fl_fore_lower posbody=body negbody=fl_spindle pos=( 0.29623,-0.09143,-1.12500) neg=( 0.64242,-0.11136,-1.35100)

[BAR] // forward upper arm
name=fl_fore_upper posbody=body negbody=fl_spindle pos=( 0.40633,0.19959,-1.40000) neg=( 0.60504,0.20765,-1.32040)

[BAR] // rearward upper arm
posbody=body negbody=fl_spindle pos=( 0.40246,0.16831,-1.15000) neg=( 0.60504,0.20765,-1.32040)

[BAR] // steering arm (must be named for identification)
name=fl_steering posbody=body negbody=fl_spindle pos=( 0.24330,-0.10391,-1.49000) neg=( 0.65515,-0.10237,-1.50000)


// Front right suspension (2 A-arms + 1 steering arm = 5 links)
[BAR] // forward lower arm
name=fr_fore_lower posbody=body negbody=fr_spindle pos=(-0.28890,-0.11656,-1.40000) neg=( -0.64242,-0.11136,-1.35100)

[BAR] // rearward lower arm
posbody=body negbody=fr_spindle pos=(-0.29623,-0.09143,-1.12500) neg=( -0.64242,-0.11136,-1.35100)

[BAR] // forward upper arm (used in steering lock calculation)
name=fr_fore_upper posbody=body negbody=fr_spindle pos=(-0.40633,0.19959,-1.40000) neg=( -0.60504,0.20765,-1.32040)

[BAR] // rearward upper arm
posbody=body negbody=fr_spindle pos=(-0.40246,0.16831,-1.15000) neg=( -0.60504,0.20765,-1.32040)

[BAR] // steering arm (must be named for identification)
name=fr_steering posbody=body negbody=fr_spindle pos=(-0.24330,-0.10391,-1.49000) neg=( -0.65515,-0.10237,-1.50000)



// Rear left suspension (2 A-arms + 1 straight link = 5 links)
[BAR] // forward lower arm
posbody=body negbody=rl_spindle pos=( 0.28502,-0.07980,1.25000) neg=( 0.63335,-0.11691,1.35000)

[BAR] // rearward lower arm
posbody=body negbody=rl_spindle pos=( 0.25955,-0.12350,1.50000) neg=( 0.63335,-0.11691,1.35000)

[BAR] // forward upper arm
posbody=body negbody=rl_spindle pos=( 0.39999,0.12112,1.25000) neg=( 0.62351,0.13825,1.35000)

[BAR] // rearward upper arm
posbody=body negbody=rl_spindle pos=( 0.42233,0.13838,1.50000) neg=( 0.62351,0.13825,1.35000)

[BAR] // straight link
posbody=body negbody=rl_spindle pos=( 0.25254,0.00290,1.50358) neg=( 0.59340,0.00084,1.51131)


// Rear right suspension (2 A-arms + 1 straight link = 5 links)
[BAR] // forward lower arm
posbody=body negbody=rr_spindle pos=(-0.28502,-0.07980,1.25000) neg=(-0.63335,-0.11691,1.35000)

[BAR] // rearward lower arm
posbody=body negbody=rr_spindle pos=(-0.25955,-0.12350,1.50000) neg=(-0.63335,-0.11691,1.35000)

[BAR] // forward upper arm
posbody=body negbody=rr_spindle pos=(-0.39999,0.12112,1.25000) neg=(-0.62351,0.13825,1.35000)

[BAR] // rearward upper arm
posbody=body negbody=rr_spindle pos=(-0.42233,0.13838,1.50000) neg=(-0.62351,0.13825,1.35000)

[BAR] // straight link
posbody=body negbody=rr_spindle pos=(-0.25254,0.00290,1.50358) neg=(-0.59340,0.00084,1.51131)


// Rear spindle and wheel connections
[JOINT&HINGE]
posbody=rl_wheel negbody=rl_spindle pos=rl_wheel axis=( 0.71095,0.0,0.0)

[JOINT&HINGE]
posbody=rr_wheel negbody=rr_spindle pos=rr_wheel axis=(-0.71095,0.0,0.0)
