Entity object parameters testing

This commit is contained in:
Braedon
2022-02-03 17:20:26 -05:00
parent 95637635f6
commit e0db2a446e
27 changed files with 1413 additions and 264 deletions

View File

@ -153,7 +153,12 @@ namespace RhythmHeavenMania
return result;
}
public float GetLoopPositionFromBeat(float startBeat, float length)
public float GetLoopPositionFromBeat(float beatOffset, float length)
{
return Mathf.Repeat(songPositionInBeats + beatOffset, length);
}
public float GetPositionFromBeat(float startBeat, float length)
{
float a = Mathp.Normalize(songPositionInBeats, startBeat, startBeat + length);
return a;