diff --git a/resources/player.tscn b/resources/player.tscn index f86bdce..834b7b0 100644 --- a/resources/player.tscn +++ b/resources/player.tscn @@ -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") diff --git a/scripts/XRHand.cs b/scripts/XRHand.cs index 951527c..63e04ef 100644 --- a/scripts/XRHand.cs +++ b/scripts/XRHand.cs @@ -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); } } }