<?xml version="1.0" ?>
<scene AmbientColor="0.7,0.7,0.7"
	FullName="Rotor entry"
	formatVersion="1.0">
	<BoundingBox MaxCorner="120.697,112.902,20"
		MinCorner="-119.052,-119.774,-20"
		Name="Boundaries">
		<Mesh Mesh="Boundary"
			Name="ForceFieldAccuracy/Boundary"
			Position="0, 0, 0"
			Rotation="0,0,0"
			Scale="5, 5, 5" />
	</BoundingBox>
	<ForceFieldVisualization TimeToLive="10,20">
		<Trail HeadHeight="5"
			HeadMaterial="ForceFieldAccuracy/LightRibbonTrailHead"
			HeadWidth="5"
			Material="ForceFieldAccuracy/LightRibbonTrail"
			MaxElements="20"
			NumberOfChains="1"
			TrailLength="50"
			UseColours="true"
			UseTextureCoords="true">
			<Chain ColorChange="0.1, 0.1, 0.1, 0.1"
				Index="0"
				InitialColor="1.0, 0.8, 0"
				InitialWidth="4"
				WidthChange="0.5" />
		</Trail>
	</ForceFieldVisualization>
	<GroundLevel Value="2000" />
	<Preset>
		<Camera Pos="-30.3659,40.7367,348.64"
			Type="camera_script1" />
		<Jumper Create="1"
			Position="-85.3139,33.9322,0" />
		<Wind Enabled="true">
			<Region>
				<Description>This force field creates a wind that moves in a circle around the center.
Use Radius1 to set the speed of the wind. Use Radius2 to set the radius of the affected area.
No change with the time</Description>
				<Function>function CalculateForce()
  -- Get distance from the center
  Distance = FieldCenter - Pos;
  -- Nothing to do if it is too far
  if(Distance:length() &gt; Radius2)then return CVector.ZERO; end;
  -- Cross product between the Distance and UNIT_Z
  -- will give the direction of the force
  Dir = Distance:cross(CVector.UNIT_Z);
  -- Make it a direction
  Dir:normalize();
  -- Return strength inversely proportional to the distance from the center
  return Dir * Radius1 * 0.1;
end
function Update()
	-- Does not return anything
end</Function>
				<Radius Name="1"
					Position="-52.6346,134.503,0">Strength of the wind</Radius>
				<Radius Name="2"
					Position="-10.7067,-0.0811749,0">Radius of the affected area</Radius>
				<Radius Name="3"
					Position="-83.1888,37.8715,0">Not used</Radius>
				<Shape Orientation="1,0,0,0"
					Position="-83.7184,34.6095,0"
					Size="171.168,139.885,20" />
			</Region>
		</Wind>
	</Preset>
	<SkyBox Distance="5000"
		Material="ForceFieldAccuracy/SkyBox/CloudySky" />
	<Stream File="../data/sounds/wind.mp3"
		Loop="true"
		Name="BgMusic" />
	<Target File="../data/ForceFieldAccuracy/models/PortalTarget.phs"
		Material="Target"
		Name="Target"
		Orientation="1, 0, 0, 0"
		Position="83.1788,-25.7728,0" />
	<nodes>
		<node id="0"
			name="LightNode"
			static="false">
			<light castShadows="false"
				name="EditorLight"
				type="point">
				<colourDiffuse b="1"
					g="1"
					r="1" />
				<colourSpecular b="1"
					g="1"
					r="1" />
				<position x="1000"
					y="1000"
					z="50" />
			</light>
			<position x="0"
				y="0"
				z="0" />
			<rotation qw="1"
				qx="0"
				qy="0"
				qz="0" />
			<scale x="1"
				y="1"
				z="1" />
		</node>
	</nodes>
</scene>
