Compare commits
2 commits
05308d88f1
...
c51757b700
Author | SHA1 | Date | |
---|---|---|---|
|
c51757b700 | ||
|
f27ff5d993 |
|
@ -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"]
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue