stuff
This commit is contained in:
103
world.tscn
Normal file
103
world.tscn
Normal file
@@ -0,0 +1,103 @@
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://world.gd" type="Script" id=1]
|
||||
[ext_resource path="res://terrain.gdshader" type="Shader" id=2]
|
||||
[ext_resource path="res://road/road_elements.gltf" type="PackedScene" id=3]
|
||||
[ext_resource path="res://camera/camera_pos.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scenes/waiting.gd" type="Script" id=5]
|
||||
[ext_resource path="res://camera/fps_cam_pos.tscn" type="PackedScene" id=6]
|
||||
|
||||
[sub_resource type="WorldGenerator" id=7]
|
||||
iso_scale = 0.01
|
||||
|
||||
[sub_resource type="VoxelMesherTransvoxel" id=4]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=6]
|
||||
shader = ExtResource( 2 )
|
||||
shader_param/u_transition_mask = null
|
||||
|
||||
[sub_resource type="Curve" id=1]
|
||||
min_value = -300.0
|
||||
max_value = 300.0
|
||||
bake_resolution = 200
|
||||
_data = [ Vector2( 0, -259.615 ), 0.0, 0.0, 0, 0, Vector2( 0.291262, -300 ), 0.0, 0.0, 0, 0, Vector2( 0.339806, -63.4615 ), 0.0, 0.0, 0, 0, Vector2( 0.466019, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.466019, 11.5385 ), 0.0, 0.0, 0, 0, Vector2( 0.723301, 75 ), 311.264, 311.264, 0, 0, Vector2( 0.902913, 184.615 ), 976.237, 976.237, 0, 0, Vector2( 0.975728, 300 ), 0.0, 0.0, 0, 0 ]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id=8]
|
||||
seed = 36800
|
||||
period = 256.0
|
||||
|
||||
[sub_resource type="DetourNavigationMesh" id=9]
|
||||
cell_size = 0.15
|
||||
cell_height = 0.15
|
||||
agent_height = 1.5
|
||||
agent_radius = 0.15
|
||||
agent_max_climb = 0.6
|
||||
region_min_size = 0.5
|
||||
region_merge_size = 10.0
|
||||
edge_max_length = 0.4
|
||||
edge_max_error = 0.2
|
||||
detail_sample_max_error = 0.5
|
||||
group = "navigation"
|
||||
partition_type = -1082130432
|
||||
data = {
|
||||
}
|
||||
|
||||
[node name="world" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
camera_path = NodePath("camera_pos/rot_y/rot_x/SpringArm/camera_offset/Camera")
|
||||
camera_pos_path = NodePath("camera_pos")
|
||||
camera_rot_y_path = NodePath("camera_pos/rot_y")
|
||||
camera_rot_x_path = NodePath("camera_pos/rot_y/rot_x")
|
||||
camera_offset_path = NodePath("camera_pos/rot_y/rot_x/SpringArm/camera_offset")
|
||||
camera_arm_path = NodePath("camera_pos/rot_y/rot_x/SpringArm")
|
||||
fps_camera_scene = ExtResource( 6 )
|
||||
|
||||
[node name="VoxelLodTerrain" type="VoxelLodTerrain" parent="." groups=["navigation"]]
|
||||
generator = SubResource( 7 )
|
||||
mesher = SubResource( 4 )
|
||||
lod_count = 5
|
||||
lod_distance = 64.0
|
||||
lod_fade_duration = 1.0
|
||||
material = SubResource( 6 )
|
||||
run_stream_in_editor = false
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 100, 0 )
|
||||
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( 0.819152, 0.40558, -0.40558, 0, 0.707107, 0.707107, 0.573577, -0.579228, 0.579228, 0, 150, 0 )
|
||||
far = 600.0
|
||||
|
||||
[node name="Roads" type="Roads" parent="."]
|
||||
road_data = ExtResource( 3 )
|
||||
curve = SubResource( 1 )
|
||||
noise = SubResource( 8 )
|
||||
|
||||
[node name="camera_pos" parent="." instance=ExtResource( 4 )]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 150, 0 )
|
||||
|
||||
[node name="waiting" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
script = ExtResource( 5 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="player" type="Spatial" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 150, 0 )
|
||||
|
||||
[node name="DetourNavigation" type="DetourNavigation" parent="."]
|
||||
|
||||
[node name="DetourNavigationMeshInstance" type="DetourNavigationMeshInstance" parent="."]
|
||||
navmesh = SubResource( 9 )
|
||||
|
||||
[node name="DetourCrowdManager" type="DetourCrowdManager" parent="."]
|
||||
|
||||
[node name="nav_pos" type="Spatial" parent="." groups=["navigation"]]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4e+07, 0, -4e+07 )
|
||||
|
||||
[node name="nav_pos2" type="Spatial" parent="." groups=["navigation"]]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4e+07, 0, 4e+07 )
|
||||
Reference in New Issue
Block a user