﻿<?xml version="1.0" encoding="UTF-8"?>
<part>
	<Author>Alban Nanty</Author>
	<Description>
		<en>Rail 9V Curve</en>
		<fr>Rail 9V courbe</fr>
	</Description>

	<!-- The margin of this part in stud for snaping on the grid, relative to the bitmap -->
	<SnapMargin>
		<left>0.5</left>
		<right>0.7</right>
		<top>0</top>
		<bottom>2.625</bottom>
	</SnapMargin>

	<!-- list of connexion point (assuming that this part can connect to another one), the position of the connexion is in stud coord and relative to the origine defined above) -->
	<ConnexionList>
		<!-- the center of this part in stud is x = 139 pix / 8 pixperstud / 2 = 8.6875    and    y = 86 / 8 / 2 = 5.375 -->		
		<connexion>
			<!-- type of connexion (0=none, 1=rail, 2=road, 3=monorail standard, 4=monorail short curve) -->
			<type>1</type>
			<position>
				<x>-8</x>
				<y>0</y>
			</position>
			<angle>180</angle>
			<angleToPrev>183.75</angleToPrev> <!-- how much angle between this connection and the prev one in this circular list -->
			<angleToNext>176.25</angleToNext> <!-- 157.5 how much angle between this connection and the next one in this circular list -->
			<nextConnexionPreference>1</nextConnexionPreference> <!-- index (0-based) in that list for connecting the next part -->
			<electricPlug>1</electricPlug>
		</connexion>
		<connexion>
			<!-- type of connexion (0=none, 1=rail, 2=road, 3=monorail standard, 4=monorail short curve) -->
			<type>1</type>
			<position>
				<x>8</x>	<!-- x = pos1x + 40 * sin(22.5) because 40 is the radius in stud of the middle line of a 9V turn (for a quarter of circle) -->
				<y>0</y>	<!-- y = pos1y + 40 * (1 - cos(22.5)) because 40 is the radius in stud of the middle line of a 9V turn (for a quarter of circle) -->
			</position>
			<angle>3.75</angle>
			<angleToPrev>176.25</angleToPrev> <!-- how much angle between this connection and the prev one in this circular list -->
			<angleToNext>183.75</angleToNext> <!-- how much angle between this connection and the next one in this circular list -->
			<nextConnexionPreference>0</nextConnexionPreference> <!-- index (0-based) in that list for connecting the next part -->
			<electricPlug>-1</electricPlug>
		</connexion>
	</ConnexionList>

	<!-- Track Designer remaping data -->
	<TrackDesigner>
		<ID>102867</ID> <!-- ID of this part in Track Designer -->
		<Flag>0</Flag> <!-- 0=no flag, 1=piece is an attachment, 2=piece is used to support elevation, 3=piece is an attachment and is used to support elevation -->
		<HasSeveralGeometries>true</HasSeveralGeometries>
		<TDBitmapList>
			<TDBitmap>
				<BBConnexionPointIndex>0</BBConnexionPointIndex>
				<Type>2</Type> <!-- The type list is too long, please refer to the help file -->
				<AngleBetweenTDandBB>0</AngleBetweenTDandBB>
			</TDBitmap>
			<TDBitmap>
				<BBConnexionPointIndex>1</BBConnexionPointIndex>
				<Type>1</Type> <!-- The type list is too long, please refer to the help file -->
				<AngleBetweenTDandBB>157.5</AngleBetweenTDandBB>
			</TDBitmap>
		</TDBitmapList>
	</TrackDesigner>
	
	<!-- LDraw remaping data -->
	<LDraw>
		<Angle>11.25</Angle>
		<Translation>
			<x>-7.65</x>
			<y>12.15</y>
		</Translation>
		<PreferredHeight>-8</PreferredHeight>
	</LDraw>
</part>