2022-08-12 01:16:38 +02:00
|
|
|
[gd_scene load_steps=3 format=2]
|
2022-08-04 22:20:29 +02:00
|
|
|
|
2022-08-31 21:25:52 +02:00
|
|
|
[ext_resource path="res://scripts/trains/Railway.cs" type="Script" id=1]
|
2022-08-04 22:20:29 +02:00
|
|
|
|
|
|
|
[sub_resource type="Curve3D" id=1]
|
2022-08-12 01:16:38 +02:00
|
|
|
bake_interval = 0.01
|
2022-08-04 22:20:29 +02:00
|
|
|
_data = {
|
2022-08-16 02:02:38 +02:00
|
|
|
"points": PoolVector3Array( -2.68413, 0, -1.21546, 2.68413, 0, 1.21546, -20.005, 0, -8.27961, -0.202576, 0, -2.12705, 0.202576, 0, 2.12705, -15.5484, 0.00448608, -2.35426, -1.06352, 0, -2.88671, 1.06352, 0, 2.88671, -16.1055, 0.000946045, 5.85007, -3.24122, 0, 0.202576, 3.24122, 0, -0.202576, -8.81272, 0, 10.4587, -0.468547, 0, 2.85805, 0.468547, 0, -2.85805, -3.58364, -0.000244141, 4.56199, -1.17756, 0, 3.41513, 1.17756, 0, -3.41513, -5.10296, -0.000259399, -3.5917, -2.78542, 0, -1.56996, 2.78542, 0, 1.56996, 3.2912, -0.000259399, -6.30449, -3.70976, 0, -1.39605, 3.70976, 0, 1.39605, 9.68509, -0.000259399, -0.0972629, 0, 0, 0, 0, 0, 0, 19.9658, -0.000259399, -1.11014 ),
|
2022-08-12 01:16:38 +02:00
|
|
|
"tilts": PoolRealArray( 0, 0, 0, 0, 0, 0, 0, 0, 0 )
|
2022-08-04 22:20:29 +02:00
|
|
|
}
|
|
|
|
|
2022-08-12 01:16:38 +02:00
|
|
|
[node name="Railway" type="Spatial"]
|
2022-08-04 22:20:29 +02:00
|
|
|
script = ExtResource( 1 )
|
2022-08-16 02:02:38 +02:00
|
|
|
RailWidth = 0.08
|
|
|
|
RailHeight = 0.12
|
|
|
|
RailGauge = 1.0
|
2022-08-15 00:50:09 +02:00
|
|
|
_railPaths = [ NodePath("L"), NodePath("R") ]
|
|
|
|
_centreLine = NodePath("Centreline")
|
2022-08-04 22:20:29 +02:00
|
|
|
|
2022-08-15 00:50:09 +02:00
|
|
|
[node name="Centreline" type="Path" parent="."]
|
2022-08-12 01:16:38 +02:00
|
|
|
curve = SubResource( 1 )
|
2022-08-04 22:20:29 +02:00
|
|
|
|
2022-08-15 00:50:09 +02:00
|
|
|
[node name="L" type="CSGPolygon" parent="."]
|
2022-08-16 02:02:38 +02:00
|
|
|
polygon = PoolVector2Array( -0.58, 0, -0.58, 0.12, -0.42, 0.12, -0.42, 0 )
|
2022-08-12 01:16:38 +02:00
|
|
|
mode = 2
|
2022-08-15 00:50:09 +02:00
|
|
|
path_node = NodePath("../Centreline")
|
|
|
|
path_interval_type = 0
|
|
|
|
path_interval = 1.0
|
|
|
|
path_simplify_angle = 0.0
|
|
|
|
path_rotation = 2
|
|
|
|
path_local = false
|
|
|
|
path_continuous_u = true
|
|
|
|
path_u_distance = 1.0
|
|
|
|
path_joined = false
|
|
|
|
|
|
|
|
[node name="R" type="CSGPolygon" parent="."]
|
2022-08-16 02:02:38 +02:00
|
|
|
polygon = PoolVector2Array( 0.42, 0, 0.42, 0.12, 0.58, 0.12, 0.58, 0 )
|
2022-08-15 00:50:09 +02:00
|
|
|
mode = 2
|
|
|
|
path_node = NodePath("../Centreline")
|
|
|
|
path_interval_type = 0
|
|
|
|
path_interval = 1.0
|
|
|
|
path_simplify_angle = 0.0
|
2022-08-12 01:16:38 +02:00
|
|
|
path_rotation = 2
|
|
|
|
path_local = false
|
|
|
|
path_continuous_u = true
|
|
|
|
path_u_distance = 1.0
|
|
|
|
path_joined = false
|