From b709b0a2c19a50103a0bdb941be92af24a5f3e86 Mon Sep 17 00:00:00 2001 From: Snorre Date: Sat, 5 Apr 2025 18:03:54 +0200 Subject: [PATCH] kinematic instead of static --- resources/player.tscn | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/player.tscn b/resources/player.tscn index bbfd3af..872e4be 100644 --- a/resources/player.tscn +++ b/resources/player.tscn @@ -26,9 +26,11 @@ script = ExtResource("1_gyc3h") [node name="MeshInstance3D" type="MeshInstance3D" parent="LeftHand"] mesh = SubResource("CapsuleMesh_ij1v8") -[node name="StaticBody3D" type="StaticBody3D" parent="LeftHand"] +[node name="RigidBody3D" type="RigidBody3D" parent="LeftHand"] +freeze = true +freeze_mode = 1 -[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/StaticBody3D"] +[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/RigidBody3D"] shape = SubResource("SphereShape3D_iyx0m") [node name="RightHand" type="XRController3D" parent="."] @@ -39,9 +41,11 @@ script = ExtResource("1_gyc3h") [node name="MeshInstance3D" type="MeshInstance3D" parent="RightHand"] mesh = SubResource("CapsuleMesh_ij1v8") -[node name="StaticBody3D" type="StaticBody3D" parent="RightHand"] +[node name="RigidBody3D" type="RigidBody3D" parent="RightHand"] +freeze = true +freeze_mode = 1 -[node name="CollisionShape3D" type="CollisionShape3D" parent="RightHand/StaticBody3D"] +[node name="CollisionShape3D" type="CollisionShape3D" parent="RightHand/RigidBody3D"] shape = SubResource("SphereShape3D_iyx0m") [node name="XRCamera3D" type="XRCamera3D" parent="." node_paths=PackedStringArray("RightHand", "LeftHand")]