You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
[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
|