mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 21:41:25 -08:00
add rotation to ParticleEffect (#4501)
* add rotation to ParticleEffect * add offset
This commit is contained in:
parent
55b790a0d4
commit
b05f867800
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ public class ParticleEffect extends Effect{
|
|||
|
||||
//region only
|
||||
public float sizeFrom = 2f, sizeTo = 0f;
|
||||
public float offset = 0;
|
||||
public String region = "circle";
|
||||
|
||||
//line only
|
||||
|
|
@ -48,7 +49,7 @@ public class ParticleEffect extends Effect{
|
|||
});
|
||||
}else{
|
||||
Angles.randLenVectors(e.id, particles, length * fin + baseLength, e.rotation, cone, (x, y) -> {
|
||||
Draw.rect(tex, e.x + x, e.y + y, rad, rad);
|
||||
Draw.rect(tex, e.x + x, e.y + y, rad, rad, e.rotation + offset);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue