Add Cube grab points
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
[gd_scene format=3 uid="uid://e4i6o5oriecx"]
|
[gd_scene format=3 uid="uid://e4i6o5oriecx"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_dbtw8"]
|
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_dbtw8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="2_pxnkq"]
|
||||||
|
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="3_iqyul"]
|
||||||
|
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_hc3f7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_a0a5b"]
|
||||||
|
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_bdp75"]
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_m1xbq"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_m1xbq"]
|
||||||
size = Vector3(0.1, 0.1, 0.1)
|
size = Vector3(0.1, 0.1, 0.1)
|
||||||
@@ -12,6 +17,16 @@ albedo_color = Color(0.1764706, 1, 1, 1)
|
|||||||
material = SubResource("StandardMaterial3D_24d3s")
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
size = Vector3(0.1, 0.1, 0.1)
|
size = Vector3(0.1, 0.1, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_lc22d"]
|
||||||
|
script = ExtResource("4_hc3f7")
|
||||||
|
closed_pose = ExtResource("3_iqyul")
|
||||||
|
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_qyiot"]
|
||||||
|
script = ExtResource("4_hc3f7")
|
||||||
|
closed_pose = ExtResource("6_bdp75")
|
||||||
|
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
||||||
|
|
||||||
[node name="PickableObject" unique_id=1675596942 instance=ExtResource("1_dbtw8")]
|
[node name="PickableObject" unique_id=1675596942 instance=ExtResource("1_dbtw8")]
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
@@ -19,3 +34,13 @@ shape = SubResource("BoxShape3D_m1xbq")
|
|||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1" unique_id=1223689787]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1" unique_id=1223689787]
|
||||||
mesh = SubResource("BoxMesh_vlqg6")
|
mesh = SubResource("BoxMesh_vlqg6")
|
||||||
|
|
||||||
|
[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("2_pxnkq")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.067650706, 0.04601878, -0.08606844)
|
||||||
|
visible = true
|
||||||
|
hand_pose = SubResource("Resource_lc22d")
|
||||||
|
|
||||||
|
[node name="GrabPointHandRight" parent="." index="3" unique_id=514404634 instance=ExtResource("5_a0a5b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06531982, 0.042291984, -0.08604182)
|
||||||
|
visible = true
|
||||||
|
hand_pose = SubResource("Resource_qyiot")
|
||||||
|
|||||||
+8
-4
@@ -18,10 +18,12 @@ tracker = &"left_hand"
|
|||||||
[node name="LeftHand" parent="XRControllerLeftHand" unique_id=1805508372 instance=ExtResource("1_jr1t4")]
|
[node name="LeftHand" parent="XRControllerLeftHand" unique_id=1805508372 instance=ExtResource("1_jr1t4")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.009340696, -0.0074635968, 0.024033919)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.009340696, -0.0074635968, 0.024033919)
|
||||||
|
|
||||||
[node name="MovementDirect" parent="XRControllerLeftHand/LeftHand" unique_id=1865515938 instance=ExtResource("2_q1xvu")]
|
[node name="MovementDirect" parent="XRControllerLeftHand" unique_id=1865515938 instance=ExtResource("2_q1xvu")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.009340696, -0.0074635968, 0.024033919)
|
||||||
strafe = true
|
strafe = true
|
||||||
|
|
||||||
[node name="FunctionPickup" parent="XRControllerLeftHand/LeftHand" unique_id=2133415351 instance=ExtResource("3_rd8py")]
|
[node name="FunctionPickup" parent="XRControllerLeftHand" unique_id=2133415351 instance=ExtResource("3_rd8py")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.009340696, -0.0074635968, 0.024033919)
|
||||||
|
|
||||||
[node name="XRControllerRightHand" type="XRController3D" parent="." unique_id=202756852]
|
[node name="XRControllerRightHand" type="XRController3D" parent="." unique_id=202756852]
|
||||||
tracker = &"right_hand"
|
tracker = &"right_hand"
|
||||||
@@ -29,11 +31,13 @@ tracker = &"right_hand"
|
|||||||
[node name="RightHand" parent="XRControllerRightHand" unique_id=1112462503 instance=ExtResource("2_gshht")]
|
[node name="RightHand" parent="XRControllerRightHand" unique_id=1112462503 instance=ExtResource("2_gshht")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0074635968, 0.024033919)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0074635968, 0.024033919)
|
||||||
|
|
||||||
[node name="MovementTurn" parent="XRControllerRightHand/RightHand" unique_id=154529119 instance=ExtResource("4_rd8py")]
|
[node name="MovementTurn" parent="XRControllerRightHand" unique_id=154529119 instance=ExtResource("4_rd8py")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0074635968, 0.024033919)
|
||||||
turn_mode = 2
|
turn_mode = 2
|
||||||
smooth_turn_speed = 3.5
|
smooth_turn_speed = 3.5
|
||||||
|
|
||||||
[node name="FunctionPickup" parent="XRControllerRightHand/RightHand" unique_id=1876210450 instance=ExtResource("3_rd8py")]
|
[node name="FunctionPickup" parent="XRControllerRightHand" unique_id=1876210450 instance=ExtResource("3_rd8py")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0074635968, 0.024033919)
|
||||||
|
|
||||||
[node name="PlayerBody" type="CharacterBody3D" parent="." unique_id=1444632058 groups=["player_body"] instance=ExtResource("4_6xr3x")]
|
[node name="PlayerBody" type="CharacterBody3D" parent="." unique_id=1444632058 groups=["player_body"] instance=ExtResource("4_6xr3x")]
|
||||||
process_priority = -100
|
process_priority = -100
|
||||||
|
|||||||
Reference in New Issue
Block a user