Hithurtboxes

This commit is contained in:
Twirpytherobot
2025-11-21 23:53:28 +00:00
parent 2ec7d56511
commit 10cc8720b7
16 changed files with 416 additions and 100 deletions
+12 -1
View File
@@ -1,8 +1,19 @@
[gd_scene load_steps=2 format=3 uid="uid://cehc5ckhq2byd"]
[gd_scene load_steps=4 format=3 uid="uid://cehc5ckhq2byd"]
[ext_resource type="PackedScene" uid="uid://c3e6e3s2q0uro" path="res://assets/Objects/Applecorer.glb" id="1_yadub"]
[ext_resource type="Script" uid="uid://jyas86y3f0jp" path="res://level/scripts/hit_box.gd" id="2_lq7hu"]
[sub_resource type="BoxShape3D" id="BoxShape3D_ei1hh"]
size = Vector3(0.19293976, 2.9722443, 0.5605469)
[node name="TestSwordMesh" type="Node3D"]
[node name="Applecorer" parent="." instance=ExtResource("1_yadub")]
transform = Transform3D(-0.3, 0, -2.6226834e-08, 0, 0.3, 0, 2.6226834e-08, 0, -0.3, 0, 0, 0)
[node name="HitBox" type="Area3D" parent="."]
script = ExtResource("2_lq7hu")
[node name="CollisionShape3D" type="CollisionShape3D" parent="HitBox"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0034065247, 2.15522, 0.0234375)
shape = SubResource("BoxShape3D_ei1hh")
+13 -2
View File
@@ -1,8 +1,19 @@
[gd_scene load_steps=2 format=3 uid="uid://rkvkbxlweo60"]
[gd_scene load_steps=4 format=3 uid="uid://rkvkbxlweo60"]
[ext_resource type="PackedScene" uid="uid://culurukxpqswh" path="res://assets/Objects/TestSword.glb" id="1_4fdvi"]
[ext_resource type="PackedScene" uid="uid://df31n55xyn27i" path="res://assets/Objects/TestSword.glb" id="1_4fdvi"]
[ext_resource type="Script" uid="uid://jyas86y3f0jp" path="res://level/scripts/hit_box.gd" id="2_3qhqw"]
[sub_resource type="BoxShape3D" id="BoxShape3D_5u25i"]
size = Vector3(0.19293976, 2.2154922, 0.5605469)
[node name="TestSwordMesh" type="Node3D"]
[node name="TestSword" parent="." instance=ExtResource("1_4fdvi")]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0.104662895, 0)
[node name="HitBox" type="Area3D" parent="."]
script = ExtResource("2_3qhqw")
[node name="CollisionShape3D" type="CollisionShape3D" parent="HitBox"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0034065247, 1.3828986, 0.0234375)
shape = SubResource("BoxShape3D_5u25i")
+13 -2
View File
@@ -1,9 +1,20 @@
[gd_scene load_steps=2 format=3 uid="uid://dyjfaq654xne3"]
[gd_scene load_steps=4 format=3 uid="uid://dyjfaq654xne3"]
[ext_resource type="ArrayMesh" uid="uid://cc1kxfbkvpo2d" path="res://assets/Objects/swordlowpoly.obj" id="1"]
[ext_resource type="ArrayMesh" uid="uid://1wnuqcx2n4xq" path="res://assets/Objects/swordlowpoly.obj" id="1"]
[ext_resource type="Script" uid="uid://jyas86y3f0jp" path="res://level/scripts/hit_box.gd" id="2_wyi6r"]
[sub_resource type="BoxShape3D" id="BoxShape3D_mhdau"]
size = Vector3(0.19293976, 1.0232315, 0.5605469)
[node name="SwordMesh" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.4839063, -2.9492104, -3.4711354)
mesh = ExtResource("1")
[node name="HitBox" type="Area3D" parent="."]
script = ExtResource("2_wyi6r")
[node name="CollisionShape3D" type="CollisionShape3D" parent="HitBox"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0034065247, 0.6794083, 0.0234375)
shape = SubResource("BoxShape3D_mhdau")