<?xml version="1.0" ?>
<scene AmbientColor="0.7,0.7,0.7"
	FullName="Eye to eye"
	formatVersion="1.0">
	<BoundingBox MaxCorner="156.026,100.646,20"
		MinCorner="-173.868,-105.021,-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="1000" />
	<Preset>
		<Camera Pos="-15.52,0,194"
			Type="camera_script1" />
		<Jumper Create="1"
			Position="-84.0607,0.411564,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.

Remove minus in the return section to make rotation counter-clockwise.
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 or Distance:length() &lt; Radius3)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="-86.6313,80.3198,0">Strength of the wind</Radius>
				<Radius Name="2"
					Position="-29.3807,-0.0664713,0">Outside radius of the affected area</Radius>
				<Radius Name="3"
					Position="-68.5935,-0.458599,0">Inside radius of the affected area</Radius>
				<Shape Orientation="1,0,0,0"
					Position="-85.847,0.325684,0"
					Size="114.585,110.262,20" />
			</Region>
			<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.

Remove minus in the return section to make rotation counter-clockwise.
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 or Distance:length() &lt; Radius3)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="48.4826,78.4947,0">Strength of the wind</Radius>
				<Radius Name="2"
					Position="-12.519,1.50204,0">Outside radius of the affected area</Radius>
				<Radius Name="3"
					Position="62.3774,-1.24285,0">Inside radius of the affected area</Radius>
				<Shape Orientation="1,0,0,0"
					Position="48.4826,-1.50538,0"
					Size="125.149,114.858,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="47.8964,5.80718,0" />
</scene>
