Compare commits

..

2 commits

Author SHA1 Message Date
Snorre c51757b700 signal;2;13~ 2025-04-05 03:39:15 +02:00
Snorre f27ff5d993 profile debugging 2025-04-05 03:38:23 +02:00
2 changed files with 10 additions and 2 deletions

View file

@ -38,3 +38,5 @@ mesh = SubResource("CapsuleMesh_ij1v8")
shape = SubResource("SphereShape3D_iyx0m") shape = SubResource("SphereShape3D_iyx0m")
[node name="XRCamera3D" type="XRCamera3D" parent="."] [node name="XRCamera3D" type="XRCamera3D" parent="."]
[connection signal="profile_changed" from="LeftHand" to="LeftHand" method="OnProfileChanged"]

View file

@ -35,7 +35,8 @@ public partial class XRHand : XRController3D
continue; continue;
} }
if (body.Mass > strength) { if (body.Mass > strength)
{
continue; continue;
} }
@ -53,4 +54,9 @@ public partial class XRHand : XRController3D
joints.Clear(); joints.Clear();
} }
} }
public void OnProfileChange(string name) {
GD.Print("Profile changed to:");
GD.Print(name);
}
} }