feat: improve VR menu pointer and BeatSaber flow
This commit is contained in:
@@ -7,6 +7,7 @@ namespace VRBeats
|
||||
public class VR_BeatCube : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float minCutSpeed = 0.5f;
|
||||
[SerializeField] private float maxCutAngle = 40f;
|
||||
[SerializeField] private OnSliceAction sliceAction = null;
|
||||
[SerializeField] private GameEvent onCorrectSlice = null;
|
||||
[SerializeField] private GameEvent onIncorrectSlice = null;
|
||||
@@ -65,7 +66,7 @@ namespace VRBeats
|
||||
|
||||
}
|
||||
|
||||
private bool IsCutIntentValid(BeatDamageInfo info)
|
||||
public bool IsCutIntentValid(BeatDamageInfo info)
|
||||
{
|
||||
if (info == null) return false;
|
||||
|
||||
@@ -76,7 +77,7 @@ namespace VRBeats
|
||||
return true;
|
||||
|
||||
float cutAngle = Vector2.Angle(transform.up, info.hitDir);
|
||||
return info.colorSide == ThisColorSide && cutAngle < 80.0f;
|
||||
return info.colorSide == ThisColorSide && cutAngle < maxCutAngle;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user