Hithurtboxes
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://db06e8q8f8bdq"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://db06e8q8f8bdq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c2si8gkbnde0c" path="res://level/scripts/player.gd" id="1_player"]
|
||||
[ext_resource type="PackedScene" uid="uid://b22ou40sbkavj" path="res://assets/characters/player/LilguyRigged.glb" id="2_lilguy"]
|
||||
[ext_resource type="Script" uid="uid://cf7jky1bcs560" path="res://level/scripts/lilguy_body.gd" id="3_body"]
|
||||
[ext_resource type="Script" uid="uid://bj7yrijm7bppq" path="res://level/scripts/spring_arm_offset.gd" id="4_spring"]
|
||||
[ext_resource type="Script" path="res://level/scripts/hurt_box.gd" id="5_hurtbox"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yxyay"]
|
||||
radius = 0.35796
|
||||
height = 1.73092
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_hurtbox"]
|
||||
radius = 0.4
|
||||
height = 1.8
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_xbohm"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
@@ -108,6 +113,16 @@ transform = Transform3D(-17.74905, -295.46814, -48.82108, 21.019196, -50.01525,
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.066, 0.828, 0.01)
|
||||
shape = SubResource("CapsuleShape3D_yxyay")
|
||||
|
||||
[node name="HurtBox" type="Area3D" parent="." node_paths=PackedStringArray("owner_entity")]
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
script = ExtResource("5_hurtbox")
|
||||
owner_entity = NodePath("..")
|
||||
|
||||
[node name="HurtBoxShape" type="CollisionShape3D" parent="HurtBox"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.066, 0.828, 0.01)
|
||||
shape = SubResource("CapsuleShape3D_hurtbox")
|
||||
|
||||
[node name="SpringArmOffset" type="Node3D" parent="." node_paths=PackedStringArray("_spring_arm")]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
|
||||
script = ExtResource("4_spring")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user