fixed jump platform

This commit is contained in:
derek
2025-05-13 11:03:54 -05:00
parent 2f0d6ca215
commit c91c34f220
3 changed files with 36 additions and 68 deletions

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://de6ivnxx0xbbk" path="res://scripts/JumpPlatform.gd" id="1_uy07y"]
[ext_resource type="Texture2D" uid="uid://bbml5pkq7iyeo" path="res://assets/Models/SubstancePainterTest/jumppadbase-low_JumpPadBase_BaseColor.png" id="2_2wtw3"]
[ext_resource type="Shader" uid="uid://moixdam5rxx7" path="res://assets/jump_platform.tres" id="2_376hv"]
[ext_resource type="Shader" uid="uid://ddf8pgbvo0glp" path="res://assets/jump_platform.tres" id="2_376hv"]
[ext_resource type="AudioStream" uid="uid://ddrlaj0ghgepn" path="res://assets/Audio/bang-4-SBA-300001718.wav" id="2_na0u8"]
[ext_resource type="Texture2D" uid="uid://35xu75bar8i6" path="res://assets/Models/SubstancePainterTest/jumppadbase-low_JumpPadBase_Metallic.png" id="3_avkk8"]
[ext_resource type="Texture2D" uid="uid://bfkb76pnkm585" path="res://assets/Models/SubstancePainterTest/jumppadbase-low_JumpPadBase_Normal.png" id="4_hkrci"]
@@ -106,10 +106,10 @@ data = PackedVector3Array(0, 0, -1, 0.7071, 0.1, -0.7071, 0, 0.1, -1, 0, 0, -1,
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pouh8"]
render_priority = 0
shader = ExtResource("2_376hv")
shader_parameter/DissolveHeightMax = 3.105
shader_parameter/DissolveHeightMax = 0.66
[sub_resource type="BoxShape3D" id="BoxShape3D_t3rus"]
size = Vector3(1, 2, 1)
[sub_resource type="CylinderShape3D" id="CylinderShape3D_18qn4"]
radius = 0.583496
[node name="JumpPlatform" type="Node3D"]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0)
@@ -145,7 +145,7 @@ collision_mask = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("BoxShape3D_t3rus")
shape = SubResource("CylinderShape3D_18qn4")
[node name="JumpSound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("2_na0u8")