something

This commit is contained in:
ThatZeoMan 2022-08-17 11:31:55 -05:00
parent b4a029ba3f
commit a46b747898
2 changed files with 4 additions and 2 deletions

View file

@ -150,6 +150,7 @@ namespace HeavenStudio
float dy = func(rotEluerLast.y, e.valB, Mathf.Min(prog, 1f));
float dz = func(rotEluerLast.z, e.valC, Mathf.Min(prog, 1f));
rotEluer = new Vector3(dx, dy, dz);
}
if (prog > 1f)
{
@ -169,7 +170,8 @@ namespace HeavenStudio
EasingFunction.Function func = EasingFunction.GetEasingFunction(e.ease);
float dx = func(positionLast.x, e.valA, Mathf.Min(prog, 1f));
float dy = func(positionLast.y, e.valA, Mathf.Min(prog, 1f));
shakeResult = new Vector3(dx, dy);
shakeResult = new Vector3(Mathf.Sin(dx * 3.14159265f * 5f) * e.valA, Mathf.Sin(dy * 3.14159265f * 10f) * e.valA);
}
if (prog > 1f)
{

View file

@ -337,7 +337,7 @@ namespace HeavenStudio
//TODO: move cam
}, 1f, true, new List<Param>()
{
new Param("valA", new EntityTypes.Float(0, 50, 10), "Intensity")
new Param("valA", new EntityTypes.Float(0, 10, 2), "Intensity")
} ),
new GameAction("move camera", delegate