- Floor map markers have improved physics and weight.

- Added a delay for re-enabling buttons in Round 2, to prevent sync issues.
- Added a button to play a phone ringing sound after Round 2.
This commit is contained in:
2025-08-25 04:54:08 -04:00
parent b5dd078ee1
commit 76b1352bd3
8 changed files with 234 additions and 147 deletions
+5 -5
View File
@@ -134,13 +134,12 @@ public class FloorMapMarker : UdonSharpBehaviour
}
else
{
VRCPlayerApi Owner = Networking.GetOwner(gameObject);
if (!Owner.IsUserInVR())
if (!_CurrentOwner.IsUserInVR())
{
transform.eulerAngles = new Vector3(0.0f, transform.eulerAngles.y, 0.0f);
}
_RigidBodyComponent.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotation;
_RigidBodyComponent.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionZ;
_NoCollisionCounter = 0;
}
@@ -261,8 +260,9 @@ public class FloorMapMarker : UdonSharpBehaviour
private void DisableMovementCompletely(Vector3 CorrectLocation = new Vector3())
{
_RigidBodyComponent.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotation;
transform.eulerAngles = new Vector3(0.0f, transform.eulerAngles.y, 0.0f);
if (CorrectLocation != Vector3.zero)
{
transform.position = CorrectLocation;
@@ -273,7 +273,7 @@ public class FloorMapMarker : UdonSharpBehaviour
private bool IsUpright()
{
return (Vector3.Dot(transform.up, Vector3.up) >= 0.85f);
return (Vector3.Dot(transform.up, Vector3.up) >= 0.8f);
}