2024-08-18 20:37:57 +02:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://7povmsfyrjf4"]
|
2024-08-18 20:06:11 +02:00
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://8nth3l65bb7r" path="res://models/grappling_hook.blend" id="1_nljl0"]
|
2024-08-18 20:37:57 +02:00
|
|
|
|
|
|
|
[sub_resource type="CSharpScript" id="CSharpScript_4q8vt"]
|
|
|
|
script/source = "using Godot;
|
|
|
|
|
|
|
|
namespace Gmtk24 {
|
|
|
|
public partial class GrapplingHook : RigidBody3D {
|
|
|
|
public void OnCollisionEntered(Node node) {
|
|
|
|
Freeze = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"
|
2024-08-18 20:06:11 +02:00
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_rp2xw"]
|
|
|
|
size = Vector3(0.872498, 0.875122, 0.902222)
|
|
|
|
|
|
|
|
[node name="GrapplingHook" type="RigidBody3D"]
|
|
|
|
contact_monitor = true
|
|
|
|
max_contacts_reported = 1
|
2024-08-18 20:37:57 +02:00
|
|
|
script = SubResource("CSharpScript_4q8vt")
|
2024-08-18 20:06:11 +02:00
|
|
|
|
|
|
|
[node name="grappling_hook" parent="." instance=ExtResource("1_nljl0")]
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
transform = Transform3D(0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, 0, 1, 0.00187739, -0.0024816, -0.348884)
|
|
|
|
shape = SubResource("BoxShape3D_rp2xw")
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="." to="." method="OnCollisionEntered"]
|