add: smooth move

This commit is contained in:
aurinex
2025-08-08 16:36:54 +05:00
parent b7ccc4e3d3
commit 5145bdfa9e
6 changed files with 137 additions and 47 deletions

View File

@ -1,29 +1,45 @@
[gd_scene load_steps=5 format=3 uid="uid://8ywbh7j4mmai"]
[gd_scene load_steps=6 format=3 uid="uid://8ywbh7j4mmai"]
[ext_resource type="PackedScene" uid="uid://dsrbro31ggv7u" path="res://scenes/player.tscn" id="1_2q6dc"]
[ext_resource type="Material" uid="uid://dv185w3f5gjp4" path="res://materials/level.tres" id="2_w7c3h"]
[sub_resource type="PlaneMesh" id="PlaneMesh_rd3vj"]
[sub_resource type="Environment" id="Environment_2q6dc"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_w7c3h"]
albedo_color = Color(5.41471e-08, 0.281997, 1.44392e-07, 1)
[sub_resource type="BoxMesh" id="BoxMesh_2q6dc"]
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_2q6dc"]
[sub_resource type="BoxMesh" id="BoxMesh_w7c3h"]
[node name="level" type="Node3D"]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0)
mesh = SubResource("PlaneMesh_rd3vj")
skeleton = NodePath("../..")
surface_material_override/0 = SubResource("StandardMaterial3D_w7c3h")
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("WorldBoundaryShape3D_2q6dc")
[node name="Player" parent="." instance=ExtResource("1_2q6dc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0640043, 0.486621, -0.407444)
jump_velocity = 7.0
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 4, -1)
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_2q6dc")
[node name="CSGMesh3D" type="CSGMesh3D" parent="."]
transform = Transform3D(38.6121, 0, 0, 0, 0.894564, 0, 0, 0, 34.4712, 0, 0, 0)
use_collision = true
mesh = SubResource("BoxMesh_2q6dc")
[node name="CSGMesh3D2" type="CSGMesh3D" parent="."]
transform = Transform3D(1.00624, 0, 0, 0, 1.00624, 0, 0, 0, 1.00624, -0.146904, 1.43323, 3.63201)
use_collision = true
mesh = SubResource("BoxMesh_w7c3h")
material = ExtResource("2_w7c3h")
[node name="CSGMesh3D3" type="CSGMesh3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.293807, 2.86646, 6.43488)
use_collision = true
mesh = SubResource("BoxMesh_w7c3h")
material = ExtResource("2_w7c3h")
[node name="CSGMesh3D4" type="CSGMesh3D" parent="."]
transform = Transform3D(13.2076, 0, 0, 0, 1, 0, 0, 0, 1, -0.587614, 4.46185, 8.71996)
use_collision = true
mesh = SubResource("BoxMesh_w7c3h")
material = ExtResource("2_w7c3h")