37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://assets/road/roadLoop.obj" type="ArrayMesh" id=1]
|
|
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
|
|
[ext_resource path="res://resources/road/roadLoop.tres" type="Curve3D" id=3]
|
|
[ext_resource path="res://resources/road/roadLoop_collision.tres" type="Curve3D" id=4]
|
|
|
|
[node name="roadLoop" type="MeshInstance"]
|
|
mesh = ExtResource( 1 )
|
|
material/0 = null
|
|
material/1 = null
|
|
material/2 = null
|
|
script = ExtResource( 2 )
|
|
reset_index = 2
|
|
speed_constrains = PoolVector3Array( 2.5, 4.8, -0.09, 4.8, 7.6, -0.13 )
|
|
force_penalties = PoolVector3Array( 0, 0, 0, 0, -1, -0.1 )
|
|
path_penalties = [ 5.0 ]
|
|
|
|
[node name="Path" type="Path" parent="."]
|
|
curve = ExtResource( 3 )
|
|
|
|
[node name="CollisionPath" type="Path" parent="."]
|
|
curve = ExtResource( 4 )
|
|
|
|
[node name="StaticBody" type="CSGPolygon" parent="."]
|
|
visible = false
|
|
use_collision = true
|
|
invert_faces = true
|
|
polygon = PoolVector2Array( -0.5, 0, -0.5, 0.01, 0.5, 0.01, 0.5, 0 )
|
|
mode = 2
|
|
path_node = NodePath("../CollisionPath")
|
|
path_interval = 1.0
|
|
path_rotation = 1
|
|
path_local = true
|
|
path_continuous_u = true
|
|
path_joined = false
|