"vehicle_physics"
{
		"steering"
		{
			"max_steering_angle" 			"30"	//maximum steering angle
			"max_reverse_steering_angle" 		"17"	
			"steering_speed"			"0.01"
			"steering_damping_speed"		"0.03"
			"steering_acceleration"			"0.003"
			// TODO: add steering speed parameter
		}
		
		"turbo"	
		{
			"limit"					"8"
			"recharge_speed"		"0.7"
			"burn_speed"			"1.0"

			
				
			"thruster"
			{
				"attachment"			"thruster01"
				"thruster_force"		"400000"
			}
		
			"thruster"
			{
				"attachment"			"thruster02"
				"thruster_force"		"400000"
			}
		}

		"suspension" // TODO: change to "spring"
		{
			"elasticity"				"20000"		// TODO: change variable name to "springConstant", This parameter controls the vehicle "bounciness". Increasing the value incrcreasses bounceaness.
			"damping"					"1000"		// TODO: change variable name to "springDamping", This parameter controls spring damping. Greater values decreas bounciness
			"attachment"				"wheel_fl"	// Name of the attachment to which the spring is attached
			"height_pose_parameter"		"vehicle_wheel_fl_height"	// Name of the poseparameter that controls suspension animation
			"position_offset"			"5"		// Physics hack: normaly should be set to zero. Offset by which the steering force and fake mass transfer is shifted in Z axis. Higher values may stabilize handling.
						
			"wheel"
			{
				"is_steering"				"1"		// Boolean value. Is this a steering wheel?
				"radius"					"20"	// Wheel radius in game units. Affects vehicle speed. Should match the view model. Bigger values decreas acceleration and increase top speed.
				"mass"						"50"	// Wheel mass. Greater values decrease acceleration, but increase TODO: add comment	
				"torque_distribution"		"0.25"	// How much engine power is transfered to this wheel. The sum of all wheels can exceed 1 which will result in increasing engine power.
				"max_grip"					"2"		// Normaly should be set to 1. This value defines the maximum wheel grip and handling. Higher values increase wheel grip.
				"grip_tangent"				"10"	// How fast the wheel reaches maximum turning speed. Higher values increase turning speed acceleration.
				"spin_pose_parameter"		"vehicle_wheel_fl_spin"	//Name of the pose parameter that controls wheel spin
				"handbrake_slip"			"0.5"	// Should be in range from 0 to 1. Describes the percentage amount of slip on this wheel, that will occur if the handbrake button will be pressed.
													// 0 - no slip at all
													// 1 - maximum slip ( no friction at all )
				"handbrake_power"			"0.05"	// How strong this wheel brake on handbrake. 							
			}
		}
		
		
		"suspension"
		{
			"elasticity"				"20000"
			"damping"					"1000"
			"attachment"				"wheel_fr"
			"height_pose_parameter"		"vehicle_wheel_fr_height"
			"position_offset"			"5"
						
			"wheel"
			{
				"is_steering"					"1"
				"radius"						"20"
				"mass"							"50"	
				"torque_distribution"			"0.25"	
				"max_grip"						"2"			
				"grip_tangent"					"10"
				"spin_pose_parameter"			"vehicle_wheel_fr_spin"
				"handbrake_slip"				"0.5"
				"handbrake_power"				"0.05"	
			}
		}
		
		
		"suspension"
		{
			"elasticity"						"15000"
			"damping"							"1000"
			"attachment"						"wheel_rl"
			"height_pose_parameter"				"vehicle_wheel_rl_height"
			"position_offset"			"5"
						
			"wheel"
			{
				"radius"							"20"
				"mass"								"50"	
				"torque_distribution"				"0.25"	
				"max_grip"							"5"			
				"grip_tangent"						"20"
				"spin_pose_parameter"				"vehicle_wheel_rl_spin"
				"handbrake_slip"					"1.0"
				"handbrake_power"					"0.3"	
			}
		}
			
		"suspension"
		{
			"elasticity"						"15000"
			"damping"							"1000"
			"attachment"						"wheel_rr"
			"height_pose_parameter"				"vehicle_wheel_rr_height"
			"position_offset"			"5"
						
			"wheel"
			{
				"radius"							"20"
				"mass"								"50"	
				"torque_distribution"				"0.25"
				"max_grip"							"5"			
				"grip_tangent"						"20"	
				"spin_pose_parameter"				"vehicle_wheel_rr_spin"
				"handbrake_slip"					"1.0"
				"handbrake_power"					"0.3"	
			}
		}
		
		"max_traction_force"				"240000"	// Acceleration limit per wheel :)
		"max_traction_slip"					"6"			// This value describes at what spin value the wheels will be most efficient. Normaly should be set to 6.
		"gravity"							"700"		// gravity acceleration in inches/s^2. Normally should be set to ~400
		// TODO: add airgravity
		"engine_max_torque"					"16000000"	// Higher values increase acceleration and top speed
		"ground_resistance"					"10"		// This value affects acceleration, top speed and wheel spin. Affects the vehicle mostly on low speeds.
		"air_drag"							"1.0"		// This value affects acceleration, top speed and wheel spin. Affects the vehicle mostly on high speeds.
		"damage_collision_modifier"			"300.0"
		
}

"vehicle_sounds"
{
	// List gears in order from lowest speed to highest speed

	"gear"
	{
		"max_speed"		"0.2"
		"speed_approach_factor" "0.7"   
	}

	"gear"
	{
		"max_speed"		"0.4"
		"speed_approach_factor" "0.05"
	}
	"gear"
	{
		"max_speed"		"0.666"
		"speed_approach_factor" "0.09"
	}
	"gear"
	{
		"max_speed"		"0.717" // = 890/1242
		"speed_approach_factor" "0.04"
	}
	"gear"
	{
		"max_speed"		"8.0"
		"speed_approach_factor" "0.01"
	}
	"state"
	{
		"name"		"SS_START_WATER"
		"sound"		"Ratmobile_start_in_water"
	}

	"state"
	{
		"name"		"SS_START_IDLE"
		"sound"		"Ratmobile_engine_start"
		"min_time"	"1.0"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN_WATER"
		"sound"		"Ratmobile_stall_in_water"
	}
	"state"
	{
		"name"		"SS_IDLE"
		"sound"		"Ratmobile_engine_idle"
	}
	"state"
	{
		"name"		"SS_REVERSE"
		"sound"		"Ratmobile_reverse"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_0"
		"sound"		"Ratmobile_rev"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_0_RESUME"
		"sound"		"Ratmobile_engine_idle"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_1"
		"sound"		"Ratmobile_firstgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_1_RESUME"
		"sound"		"Ratmobile_firstgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_2"
		"sound"		"Ratmobile_secondgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_2_RESUME"
		"sound"		"Ratmobile_secondgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_3"
		"sound"		"Ratmobile_thirdgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_3_RESUME"
		"sound"		"Ratmobile_thirdgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_4"
		"sound"		"Ratmobile_fourthgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_4_RESUME"
		"sound"		"Ratmobile_fourthgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN_HIGHSPEED"
		"sound"		"Ratmobile_throttleoff_fastspeed"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN"
		"sound"		"Ratmobile_throttleoff_slowspeed"
	}
	"state"
	{
		"name"		"SS_TURBO"
		"sound"		"Ratmobile_turbo_on"
		"min_time"	"2.5"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN"
		"sound"		"Ratmobile_engine_stop"
	}
	"crashsound"
	{
		"min_speed"			"350"
		"min_speed_change"	"250"
		"sound"				"Ratmobile_impact_medium"
		"gear_limit"		"1"
	}
	"crashsound"
	{
		"min_speed"			"450"
		"min_speed_change"	"350"
		"sound"				"Ratmobile_impact_heavy"
	}

	
	"skid_lowfriction"		"Ratmobile_skid_lowfriction"
	"skid_normalfriction"	"Ratmobile_skid_normalfriction"
	"skid_highfriction"		"Ratmobile_skid_highfriction"
}
