Effect Rotate With Parent (#5999)

* Effect Rotate With Parent

* Use Rotc

* Wording

* Base Rotation

* Rotate effect rotation with parent.
This commit is contained in:
Matthew Peng
2021-09-27 08:55:56 -07:00
committed by GitHub
parent 6fb7f4fe26
commit 083c21ea3f
4 changed files with 41 additions and 11 deletions

View File

@@ -362,13 +362,13 @@ public class Fx{
Fill.circle(e.x, e.y, e.fin() * 10);
Drawf.light(e.x, e.y, e.fin() * 20f, Pal.heal, 0.7f);
}).followParent(true),
}).followParent(true).rotWithParent(true),
greenLaserChargeSmall = new Effect(40f, 100f, e -> {
color(Pal.heal);
stroke(e.fin() * 2f);
Lines.circle(e.x, e.y, e.fout() * 50f);
}).followParent(true),
}).followParent(true).rotWithParent(true),
greenCloud = new Effect(80f, e -> {
color(Pal.heal);
@@ -1943,7 +1943,7 @@ public class Fx{
}
Lines.endLine();
}).followParent(false),
}).followParent(false).rotWithParent(false),
chainEmp = new Effect(30f, 300f, e -> {
if(!(e.data instanceof Position p)) return;
@@ -1980,5 +1980,5 @@ public class Fx{
}
Lines.endLine();
}).followParent(false);
}).followParent(false).rotWithParent(false);
}