mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:47:39 +02:00
Entity object parameters testing
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user