RailBulletType improvements

This commit is contained in:
Anuken
2022-02-25 13:24:18 -05:00
parent 28dab2fa05
commit 7245364a55
10 changed files with 74 additions and 52 deletions

View File

@@ -92,6 +92,10 @@ public abstract class DrawPart{
return p -> (get(p) - amount) / (1f - amount);
}
default PartProgress curve(float offset, float duration){
return p -> (get(p) - offset) / duration;
}
default PartProgress shorten(float amount){
return p -> get(p) / (1f - amount);
}