From 13106ad8b2988da54aadee5d4a78447ae2959333 Mon Sep 17 00:00:00 2001 From: Snorre Date: Sat, 5 Apr 2025 19:00:53 +0200 Subject: [PATCH] grab --- resources/player.tscn | 2 -- scripts/XRHand.cs | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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); } } }