Added Terrain3D and Jolt physics

This commit is contained in:
2024-02-19 14:40:29 +01:00
parent 0c15f00942
commit 54f2b9c686
9 changed files with 83 additions and 32 deletions

View File

@ -11,6 +11,9 @@ var depth := 60
var current_pos := Vector3i(0, 0, 0)
var old_pos := Vector3i(NAN, NAN, NAN)
func _ready():
set_process(visible)
func _process(_delta):
current_pos = local_to_map(Global.player.position)

View File

@ -0,0 +1,38 @@
[gd_resource type="Terrain3DMaterial" load_steps=4 format=3 uid="uid://nhcs8ekjedbb"]
[sub_resource type="Gradient" id="Gradient_3bxf2"]
offsets = PackedFloat32Array(0.2, 1)
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_v4p6k"]
noise_type = 2
frequency = 0.03
cellular_jitter = 3.0
cellular_return_type = 0
domain_warp_enabled = true
domain_warp_type = 1
domain_warp_amplitude = 50.0
domain_warp_fractal_type = 2
domain_warp_fractal_lacunarity = 1.5
domain_warp_fractal_gain = 1.0
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_njlw8"]
seamless = true
color_ramp = SubResource("Gradient_3bxf2")
noise = SubResource("FastNoiseLite_v4p6k")
[resource]
_shader_parameters = {
"_mouse_layer": 2147483648,
"blend_sharpness": null,
"height_blending": null,
"macro_variation1": null,
"macro_variation2": null,
"noise1_angle": null,
"noise1_offset": null,
"noise1_scale": null,
"noise2_scale": null,
"noise3_scale": null,
"noise_texture": SubResource("NoiseTexture2D_njlw8")
}
show_checkered = true

View File

@ -0,0 +1,3 @@
[gd_resource type="Terrain3DTextureList" format=3 uid="uid://cpq0eq7wr08kf"]
[resource]