add rotation to ParticleEffect (#4501)
* add rotation to ParticleEffect * add offset
This commit is contained in:
@@ -16,6 +16,7 @@ public class ParticleEffect extends Effect{
|
|||||||
|
|
||||||
//region only
|
//region only
|
||||||
public float sizeFrom = 2f, sizeTo = 0f;
|
public float sizeFrom = 2f, sizeTo = 0f;
|
||||||
|
public float offset = 0;
|
||||||
public String region = "circle";
|
public String region = "circle";
|
||||||
|
|
||||||
//line only
|
//line only
|
||||||
@@ -48,7 +49,7 @@ public class ParticleEffect extends Effect{
|
|||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
Angles.randLenVectors(e.id, particles, length * fin + baseLength, e.rotation, cone, (x, y) -> {
|
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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user