gihudfhkgkdsf:
This commit is contained in:
parent
b709b0a2c1
commit
e37e04847d
|
@ -18,10 +18,11 @@ radius = 0.03
|
||||||
current = true
|
current = true
|
||||||
script = ExtResource("1_ucfva")
|
script = ExtResource("1_ucfva")
|
||||||
|
|
||||||
[node name="LeftHand" type="XRController3D" parent="."]
|
[node name="LeftHand" type="XRController3D" parent="." node_paths=PackedStringArray("body")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.381652, 0.302346, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.381652, 0.302346, 0)
|
||||||
tracker = &"left_hand"
|
tracker = &"left_hand"
|
||||||
script = ExtResource("1_gyc3h")
|
script = ExtResource("1_gyc3h")
|
||||||
|
body = NodePath("RigidBody3D")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="LeftHand"]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="LeftHand"]
|
||||||
mesh = SubResource("CapsuleMesh_ij1v8")
|
mesh = SubResource("CapsuleMesh_ij1v8")
|
||||||
|
@ -33,10 +34,11 @@ freeze_mode = 1
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/RigidBody3D"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/RigidBody3D"]
|
||||||
shape = SubResource("SphereShape3D_iyx0m")
|
shape = SubResource("SphereShape3D_iyx0m")
|
||||||
|
|
||||||
[node name="RightHand" type="XRController3D" parent="."]
|
[node name="RightHand" type="XRController3D" parent="." node_paths=PackedStringArray("body")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.412168, 0.292391, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.412168, 0.292391, 0)
|
||||||
tracker = &"right_hand"
|
tracker = &"right_hand"
|
||||||
script = ExtResource("1_gyc3h")
|
script = ExtResource("1_gyc3h")
|
||||||
|
body = NodePath("RigidBody3D")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="RightHand"]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="RightHand"]
|
||||||
mesh = SubResource("CapsuleMesh_ij1v8")
|
mesh = SubResource("CapsuleMesh_ij1v8")
|
||||||
|
|
|
@ -6,7 +6,7 @@ public partial class XRHand : XRController3D
|
||||||
List<Generic6DofJoint3D> joints = new();
|
List<Generic6DofJoint3D> joints = new();
|
||||||
|
|
||||||
[Export]
|
[Export]
|
||||||
StaticBody3D body;
|
RigidBody3D body;
|
||||||
|
|
||||||
[Export]
|
[Export]
|
||||||
public float Strength = 1.0f;
|
public float Strength = 1.0f;
|
||||||
|
@ -44,7 +44,7 @@ public partial class XRHand : XRController3D
|
||||||
|
|
||||||
Generic6DofJoint3D joint = new();
|
Generic6DofJoint3D joint = new();
|
||||||
joint.NodeA = body.GetPath();
|
joint.NodeA = body.GetPath();
|
||||||
joint.NodeB = GetPath();
|
joint.NodeB = this.body.GetPath();
|
||||||
joints.Add(joint);
|
joints.Add(joint);
|
||||||
|
|
||||||
AddChild(joint);
|
AddChild(joint);
|
||||||
|
|
Loading…
Reference in a new issue