This commit is contained in:
Snorre 2025-04-05 19:00:53 +02:00
parent 58d9a19baf
commit 13106ad8b2
2 changed files with 3 additions and 2 deletions

View file

@ -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")

View file

@ -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);
}
}
}