grab
This commit is contained in:
parent
58d9a19baf
commit
13106ad8b2
|
@ -32,7 +32,6 @@ mesh = SubResource("CapsuleMesh_ij1v8")
|
|||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="LeftHand"]
|
||||
freeze = true
|
||||
freeze_mode = 1
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/RigidBody3D"]
|
||||
shape = SubResource("SphereShape3D_iyx0m")
|
||||
|
@ -54,7 +53,6 @@ mesh = SubResource("CapsuleMesh_ij1v8")
|
|||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="RightHand"]
|
||||
freeze = true
|
||||
freeze_mode = 1
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RightHand/RigidBody3D"]
|
||||
shape = SubResource("SphereShape3D_iyx0m")
|
||||
|
|
|
@ -57,6 +57,9 @@ public partial class XRHand : XRController3D
|
|||
joints.Add(joint);
|
||||
rb.AddChild(joint);
|
||||
joint.Position = Vector3.Zero;
|
||||
joint.SetParamX(Generic6DofJoint3D.Param.LinearLimitSoftness, 5f);
|
||||
joint.SetParamY(Generic6DofJoint3D.Param.LinearLimitSoftness, 5f);
|
||||
joint.SetParamZ(Generic6DofJoint3D.Param.LinearLimitSoftness, 5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue