<?xml version="1.0" ?>
<scene AmbientColor="0.7,0.7,0.7"
	FullName="Slide Lift"
	formatVersion="1.0">
	<BoundingBox MaxCorner="66.5627,138.64,20"
		MinCorner="-166.035,-109.473,-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="300" />
	<Preset>
		<Camera Pos="-34.9045,6.46221,300.16"
			Type="camera_script1" />
		<Jumper Create="1"
			Position="-84.8827,-52.0867,0" />
		<Wind Enabled="true">
			<Region>
				<Description>Creates wind in a given direction.</Description>
				<Function>-- CONSTANT_FUNCTION --
function CalculateForce()
  -- Direction of the wind depends on the position of the Radius1
  Direction = Radius1Pos - FieldCenter;
  -- Make it a direction 
  Direction:normalize();
  -- Strength of the field depends on the Radius1
  return Direction * Radius1 * 0.5;
end

function Update()
	-- Does not return anything
end</Function>
				<Radius Name="1"
					Position="-45.4011,136.937,0">Direction and strength of the wind</Radius>
				<Radius Name="2"
					Position="-53.2317,-1.63173,0">Not used</Radius>
				<Radius Name="3"
					Position="-41.7923,-111.743,0">Not used</Radius>
				<Shape Orientation="1,0,0,0"
					Position="-41.1103,-0.601987,0"
					Size="24.3661,224.925,20" />
			</Region>
			<Region>
				<Description>Creates wind in a given direction.</Description>
				<Function>-- CONSTANT_FUNCTION --
function CalculateForce()
  -- Direction of the wind depends on the position of the Radius1
  Direction = Radius1Pos - FieldCenter;
  -- Make it a direction 
  Direction:normalize();
  -- Strength of the field depends on the Radius1
  return Direction * Radius1 * 0.1;
end

function Update()
	-- Does not return anything
end</Function>
				<Radius Name="1"
					Position="-219.851,84.7963,0">Direction and strength of the wind</Radius>
				<Radius Name="2"
					Position="-83.4738,74.4347,0">Not used</Radius>
				<Radius Name="3"
					Position="-81.7707,63.0731,0">Not used</Radius>
				<Shape Orientation="1,0,0,0"
					Position="-85.1769,69.3234,0"
					Size="111.338,47.7243,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="38.2585,6.27909,0" />
</scene>
