<?xml version="1.0"?>
<dynamic_object>
  <diesel materials="units/payday2/vehicles/str_vehicle_bmw/str_vehicle_bmw" orientation_object="rp_str_vehicle_bmw" />
  <sequence_manager file="units/payday2/vehicles/str_vehicle_bmw/str_vehicle_bmw" />
  
  <animations>
    <!--tire animation groups-->
    <animation_group name="ag_tire_front_right">
      <object name="a_tire_front_right" />
    </animation_group>
    <animation_group name="ag_tire_front_left">
      <object name="a_tire_front_left" />
    </animation_group>
    <animation_group name="ag_tire_rear_right">
      <object name="a_tire_rear_right" />
    </animation_group>
    <animation_group name="ag_tire_rear_left">
      <object name="a_tire_rear_left" />
    </animation_group>

    <!-- Light animation group -->
	<animation_group name="alarm_lights" enabled="false">
		<object name="ls_left" />
		<object name="ls_right" />
		<object name="ls_rear" />
	</animation_group>
  </animations>
  
 <bodies>
    <body name="bmw" enabled="true" template="static">
	  <object name="rp_str_vehicle_bmw" />
      <object name="c_bmw" collision_type="mesh_mopp" />
	</body>
	<body name="graph_blocker" enabled="true" template="graph_blocker">
      <object name="c_graph_blocker" collision_type="box" padding="25" />
	</body>
	<body remove_ray_type="ai_vision" name="window_right_rear" enabled="true" template="static">
      <object name="c_window_right_rear" collision_type="mesh_mopp" two_sided="true" />
	</body>
	<body remove_ray_type="ai_vision" name="window_right_front" enabled="true" template="static">
      <object name="c_window_right_front" collision_type="mesh_mopp" two_sided="true" />
	</body>
	<body remove_ray_type="ai_vision" name="window_left_rear" enabled="true" template="static">
      <object name="c_window_left_rear" collision_type="mesh_mopp" two_sided="true" />
	</body>
	<body remove_ray_type="ai_vision" name="window_left_front" enabled="true" template="static">
      <object name="c_window_left_front" collision_type="mesh_mopp" two_sided="true" />
	</body>
	<body name="window_back" enabled="true" template="static">
      <object name="c_window_back" collision_type="mesh_mopp" two_sided="true" />
	</body>
	<body name="window_front" enabled="true" template="static">
      <object name="c_window_front" collision_type="mesh_mopp" two_sided="true" />
	</body>
	  
	<body remove_ray_type="ai_vision" name="window_left_middle" enabled="true" template="static">
      <object name="c_window_left_middle" collision_type="mesh_mopp" two_sided="true" />
	</body>
	<body remove_ray_type="ai_vision" name="window_right_middle" enabled="true" template="static">
      <object name="c_window_right_middle" collision_type="mesh_mopp" two_sided="true" />
	</body>
	  
	<body name="static_body" enabled="true" template="static">
	  <object name="c_rims" collision_type="mesh_mopp" />
	</body>
	  
	<body name="tire_front_right" enabled="true" template="static">
      <object name="c_tire_front_right" collision_type="mesh_mopp" />
    </body>
	
	<body name="tire_front_left" enabled="true" template="static">
      <object name="c_tire_front_left" collision_type="mesh_mopp" />
    </body>
	
	<body name="tire_rear_right" enabled="true" template="static">
      <object name="c_tire_rear_right" collision_type="mesh_mopp" />
    </body>
	
	<body name="tire_rear_left" enabled="true" template="static">
      <object name="c_tire_rear_left" collision_type="mesh_mopp" />
    </body>
  </bodies>
  
  <decal_surfaces default_material="metal">
	  <decal_mesh name="dm_window_right_rear" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_right_front" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_left_rear" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_left_front" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_back" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_front" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_left_middle" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_window_right_middle" enabled="true" material="glass_breakable" />
	  <decal_mesh name="dm_bmw" enabled="true" material="metal_chassis" />
	  <decal_mesh name="c_rims" enabled="true" material="metal" />
	  <decal_mesh name="c_tire_front_right" enabled="true" material="rubber" />
	  <decal_mesh name="c_tire_front_left" enabled="true" material="rubber" />
	  <decal_mesh name="c_tire_rear_right" enabled="true" material="rubber" />
	  <decal_mesh name="c_tire_rear_left" enabled="true" material="rubber" />  
  </decal_surfaces>
  
	<graphics>
		 <lod_object name="bmw">
			<object name="g_bmw" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_bmw_lod" lod="1" enabled="true" instance_struct="world_tm" />
		 </lod_object> 
		<lod_object name="win1">
			<object name="g_window_right_rear" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_right_rear_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		<lod_object name="win2">
			<object name="g_window_right_rear_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_right_rear_dmg_lod" lod="1"  enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win3">
			<object name="g_window_right_front_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_right_front_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win4">
			<object name="g_window_left_rear" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_left_rear_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win5">
			<object name="g_window_left_rear_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_left_rear_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win6">
			<object name="g_window_left_front_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_left_front_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win7">
			<object name="g_window_left_front" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_left_front_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win8">
			<object name="g_window_back_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_back_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win9">
			<object name="g_window_back" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_back_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win10">
			<object name="g_window_front_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_front_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win11">
			<object name="g_window_front" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_front_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win12">
			<object name="g_window_right_front" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" /> 
			<object name="g_window_right_front_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object>
			 <lod_object name="win13">
			<object name="g_window_left_middle" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_left_middle_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win14">
			<object name="g_window_left_middle_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" />
			<object name="g_window_left_middle_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win15">
			<object name="g_window_right_middle" max_distance="5000" lod="0" enabled="true" instance_struct="world_tm" />
			<object name="g_window_right_middle_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object> 
		 <lod_object name="win16">
			<object name="g_window_right_middle_dmg" max_distance="5000" lod="0" enabled="false" instance_struct="world_tm" /> 
			<object name="g_window_right_middle_dmg_lod" lod="1" enabled="false" instance_struct="world_tm" />
		</lod_object>
		
		<object name="s_bmw" enabled="true" shadow_caster="true" instance_struct="world_tm" />
		<object name="g_vehicle_tires" enabled="true" instance_struct="world_tm" />
		<object enabled="false" name="g_lights" />
		<object enabled="false" name="g_lights_il"/>
		<object enabled="false" name="g_lights_rear_effect"/>
		<object enabled="false" name="g_lights_left_effect"/>
		<object enabled="false" name="g_lights_right_effect"/>	
	</graphics>
  
	<objects>
		<align_point name="e_window_right_rear" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_right_front" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_left_rear" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_left_front" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_back" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_front" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_left_middle" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" />
		<align_point name="e_window_right_middle" enabled="true" parent="rp_str_vehicle_bmw" position="0 0 0" rotation="0 0 0" /> 
	</objects>

    <lights>
		<light name="ls_left" far_range="2000" type="spot|specular"   end_angle="53" multiplier="identity" editable="true" />
		<light name="ls_right" far_range="2000" type="spot|specular"   end_angle="39" multiplier="identity" editable="true" />
		<light name="ls_rear" far_range="350" type="omni|specular" multiplier="0.1" falloff="4" editable="true" />
    </lights>
</dynamic_object> 