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")
[node name="XRCamera3D" type="XRCamera3D" parent="."]
[connection signal="profile_changed" from="LeftHand" to="LeftHand" method="OnProfileChanged"]

View file

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