Add Chopping Gesture
This commit is contained in:
+3
-9
@@ -2,7 +2,6 @@
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_apu43"]
|
||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="2_ti0k8"]
|
||||
[ext_resource type="Script" uid="uid://cxeipjc3m0hhu" path="res://prefabs/knife_controller.gd" id="2_va4ky"]
|
||||
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="3_xyohi"]
|
||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_4iajw"]
|
||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_kni1i"]
|
||||
@@ -65,15 +64,12 @@ second_hand_grab = 1
|
||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 2.8164342e-09, -0.0644325)
|
||||
shape = SubResource("CylinderShape3D_fco8w")
|
||||
|
||||
[node name="KnifeController" type="Node3D" parent="." index="1" unique_id=2068516828]
|
||||
script = ExtResource("2_va4ky")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="KnifeController" index="0" unique_id=1995926098]
|
||||
[node name="Area3D" type="Area3D" parent="." index="1" unique_id=1995926098 groups=["chopping_tool"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.05011083)
|
||||
collision_layer = 512
|
||||
collision_layer = 513
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="KnifeController/Area3D" index="0" unique_id=1593629505]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0" unique_id=1593629505]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.018579103, -0.1395939)
|
||||
shape = SubResource("BoxShape3D_vlqg6")
|
||||
|
||||
@@ -160,5 +156,3 @@ sides = 64
|
||||
transform = Transform3D(-4.3710607e-08, -0.9973613, 0.0724587, 0.99998987, -4.3595673e-08, 3.1672265e-09, 0, 0.034851935, 0.47972566, 0.25730363, -0.003919763, 0.23939973)
|
||||
operation = 2
|
||||
size = Vector3(0.40247935, 0.2781372, 0.97288764)
|
||||
|
||||
[connection signal="body_entered" from="KnifeController/Area3D" to="KnifeController" method="_on_chop_area_entered"]
|
||||
|
||||
+3
-4
@@ -64,16 +64,15 @@ script = ExtResource("9_x0uku")
|
||||
|
||||
[node name="DespawningItem" parent="." index="5" unique_id=303090111 instance=ExtResource("10_fj22u")]
|
||||
|
||||
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="." index="6" unique_id=1632388374]
|
||||
use_collision = true
|
||||
[node name="CSGCombiner3DPotato" type="CSGCombiner3D" parent="." index="6" unique_id=1632388374]
|
||||
|
||||
[node name="CSGSphere3D" type="CSGSphere3D" parent="CSGCombiner3D" index="0" unique_id=125051486]
|
||||
[node name="CSGSphere3D" type="CSGSphere3D" parent="CSGCombiner3DPotato" index="0" unique_id=125051486]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.03307341)
|
||||
radius = 0.06
|
||||
radial_segments = 32
|
||||
material = SubResource("StandardMaterial3D_d4wpw")
|
||||
|
||||
[node name="CSGSphere3D2" type="CSGSphere3D" parent="CSGCombiner3D" index="1" unique_id=837168454]
|
||||
[node name="CSGSphere3D2" type="CSGSphere3D" parent="CSGCombiner3DPotato" index="1" unique_id=837168454]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.03243477)
|
||||
radius = 0.053
|
||||
radial_segments = 32
|
||||
|
||||
Reference in New Issue
Block a user