Files
fps_project_1/assets/jump_platform.tscn

43 lines
2.1 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://20csd6dmwj4y"]
[ext_resource type="Script" path="res://scripts/JumpPlatform.gd" id="1_uy07y"]
[ext_resource type="AudioStream" uid="uid://ddrlaj0ghgepn" path="res://assets/Audio/bang-4-SBA-300001718.wav" id="2_na0u8"]
[sub_resource type="BoxMesh" id="BoxMesh_doed0"]
size = Vector3(1, 0.1, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ur8dk"]
albedo_color = Color(0.983324, 0, 0.213816, 1)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_g882c"]
data = PackedVector3Array(-0.5, 0.05, 0.5, 0.5, 0.05, 0.5, -0.5, -0.05, 0.5, 0.5, 0.05, 0.5, 0.5, -0.05, 0.5, -0.5, -0.05, 0.5, 0.5, 0.05, -0.5, -0.5, 0.05, -0.5, 0.5, -0.05, -0.5, -0.5, 0.05, -0.5, -0.5, -0.05, -0.5, 0.5, -0.05, -0.5, 0.5, 0.05, 0.5, 0.5, 0.05, -0.5, 0.5, -0.05, 0.5, 0.5, 0.05, -0.5, 0.5, -0.05, -0.5, 0.5, -0.05, 0.5, -0.5, 0.05, -0.5, -0.5, 0.05, 0.5, -0.5, -0.05, -0.5, -0.5, 0.05, 0.5, -0.5, -0.05, 0.5, -0.5, -0.05, -0.5, 0.5, 0.05, 0.5, -0.5, 0.05, 0.5, 0.5, 0.05, -0.5, -0.5, 0.05, 0.5, -0.5, 0.05, -0.5, 0.5, 0.05, -0.5, -0.5, -0.05, 0.5, 0.5, -0.05, 0.5, -0.5, -0.05, -0.5, 0.5, -0.05, 0.5, 0.5, -0.05, -0.5, -0.5, -0.05, -0.5)
[sub_resource type="BoxShape3D" id="BoxShape3D_t3rus"]
size = Vector3(1, 0.25, 1)
[node name="JumpPlatform" type="StaticBody3D"]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0.09984, 0)
script = ExtResource("1_uy07y")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_doed0")
surface_material_override/0 = SubResource("StandardMaterial3D_ur8dk")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("ConcavePolygonShape3D_g882c")
[node name="Area3D" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.147461, 0)
shape = SubResource("BoxShape3D_t3rus")
[node name="JumpSound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("2_na0u8")
volume_db = 10.0
doppler_tracking = 2
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]