"vehicle_physics"
{
		"steering"
		{
			"max_steering_angle" 			"30"	//maximum steering angle
			"max_reverse_steering_angle" 		"12"
			"steering_speed"				"0.01"
			"steering_damping_speed"		"0.08"
			"steering_acceleration"			"0.002"
			// TODO: add steering speed parameter
		}
				"turbo"	
		{
			"limit"					"7"
			"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"				"25000"		// TODO: change variable name to "springConstant", This parameter controls the vehicle "bounciness". Increasing the value incrcreasses bounceaness.
			"damping"					"3000"		// 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"			"12"		// 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"					"16"	// 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"				"25000"
			"damping"					"3000"
			"attachment"				"wheel_fr"
			"height_pose_parameter"		"vehicle_wheel_fr_height"
			"position_offset"			"12"
						
			"wheel"
			{
				"is_steering"					"1"
				"radius"						"16"
				"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"						"25000"
			"damping"							"3000"
			"attachment"						"wheel_rl"
			"height_pose_parameter"				"vehicle_wheel_rl_height"
			"position_offset"			"12"
						
			"wheel"
			{
				"radius"							"16"
				"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"						"25000"
			"damping"							"3000"
			"attachment"						"wheel_rr"
			"height_pose_parameter"				"vehicle_wheel_rr_height"
			"position_offset"			"12"
						
			"wheel"
			{
				"radius"							"16"
				"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.7"		// This value affects acceleration, top speed and wheel spin. Affects the vehicle mostly on high speeds.
		"damage_collision_modifier"			"380.0"
}

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

	"gear"
	{
		"max_speed"		"0.3"
		"speed_approach_factor" "0.4"
	}

	"gear"
	{
		"max_speed"		"0.5"
		"speed_approach_factor" "0.07"
	}
	"gear"
	{
		"max_speed"		"0.69"
		"speed_approach_factor" "0.07"
	}
	"gear"
	{
		"max_speed"		"0.736" // = 740/1006
		"speed_approach_factor" "0.035"
	}
	"gear"
	{
		"max_speed"		"8.0"
		"speed_approach_factor" "0.01"
	}
	"state"
	{
		"name"		"SS_START_WATER"
		"sound"		"Hedgehog_start_in_water"
	}

	"state"
	{
		"name"		"SS_START_IDLE"
		"sound"		"Hedgehog_engine_start"
        "min_time"	"1.0"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN_WATER"
		"sound"		"Hedgehog_stall_in_water"
	}
	"state"
	{
		"name"		"SS_IDLE"
		"sound"		"Hedgehog_engine_idle"
	}
	"state"
	{
		"name"		"SS_REVERSE"
		"sound"		"Hedgehog_reverse"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_0"
		"sound"		"Hedgehog_rev"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_0_RESUME"
		"sound"		"Hedgehog_engine_idle"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_1"
		"sound"		"Hedgehog_firstgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_1_RESUME"
		"sound"		"Hedgehog_firstgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_2"
		"sound"		"Hedgehog_secondgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_2_RESUME"
		"sound"		"Hedgehog_secondgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_3"
		"sound"		"Hedgehog_thirdgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_3_RESUME"
		"sound"		"Hedgehog_thirdgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_4"
		"sound"		"Hedgehog_fourthgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_4_RESUME"
		"sound"		"Hedgehog_fourthgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN_HIGHSPEED"
		"sound"		"Hedgehog_throttleoff_fastspeed"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN"
		"sound"		"Hedgehog_throttleoff_slowspeed"
	}
	"state"
	{
		"name"		"SS_TURBO"
		"sound"		"Hedgehog_turbo_on"		//"ATV_turbo_on"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN"
		"sound"		"Hedgehog_engine_stop"
	}
	"crashsound"
	{
		"min_speed"			"350"
		"min_speed_change"	"250"
		"sound"				"Hedgehog_impact_medium"
		"gear_limit"		"1"
	}
	"crashsound"
	{
		"min_speed"			"450"
		"min_speed_change"	"350"
		"sound"				"Hedgehog_impact_heavy"
	}

	
	"skid_lowfriction"		"Hedgehog_skid_lowfriction"
	"skid_normalfriction"	"Hedgehog_skid_normalfriction"
	"skid_highfriction"		"Hedgehog_skid_highfriction"
}
