don't multiply by scale here since it's already applied
This commit is contained in:
parent
ad8216286b
commit
234eaa4f72
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ namespace ThemeParkClicker {
|
||||||
private static IEnumerator<IWait> WobbleElement(CustomDrawGroup element, float intensity = 0.01F) {
|
private static IEnumerator<IWait> WobbleElement(CustomDrawGroup element, float intensity = 0.01F) {
|
||||||
var sin = 0F;
|
var sin = 0F;
|
||||||
while (sin < MathHelper.Pi) {
|
while (sin < MathHelper.Pi) {
|
||||||
element.ScaleOrigin(1 + (float) Math.Sin(sin) * intensity * element.Scale);
|
element.ScaleOrigin(1 + (float) Math.Sin(sin) * intensity);
|
||||||
sin += 0.2F;
|
sin += 0.2F;
|
||||||
yield return new WaitEvent(CoroutineEvents.Update);
|
yield return new WaitEvent(CoroutineEvents.Update);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue