- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user