54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://13qlrib2dk36"]
|
|
|
|
[ext_resource type="Script" path="res://objects/waterman_pole.gd" id="1_8whes"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6xwjl"]
|
|
shading_mode = 2
|
|
specular_mode = 2
|
|
albedo_color = Color(3.27289e-06, 0.685269, 0.929658, 1)
|
|
metallic_specular = 0.0
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_nbwjg"]
|
|
top_radius = 0.25
|
|
bottom_radius = 0.25
|
|
height = 1.0
|
|
radial_segments = 6
|
|
rings = 8
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_28fhu"]
|
|
height = 1.0
|
|
radius = 0.25
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_o6xmv"]
|
|
height = 1.0
|
|
radius = 0.4
|
|
|
|
[node name="WatermanPole" type="Node3D" node_paths=PackedStringArray("top")]
|
|
script = ExtResource("1_8whes")
|
|
top = NodePath("Top")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
material_override = SubResource("StandardMaterial3D_6xwjl")
|
|
mesh = SubResource("CylinderMesh_nbwjg")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
shape = SubResource("CylinderShape3D_28fhu")
|
|
|
|
[node name="PlayerDetector" type="Area3D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 16
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerDetector"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
shape = SubResource("CylinderShape3D_o6xmv")
|
|
|
|
[node name="Top" type="Node3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
[connection signal="body_entered" from="PlayerDetector" to="." method="_on_player_detector_body_entered"]
|