Open StamesJames opened 1 month ago
Feel free to open a pull request for this :slightly_smiling_face:
Because there already exists a similar feature in 3D and also I think there was such an emission shape in the 3.x versions of the particle systems (I have seen it in a tutorial once)
This emission shape was never implemented in 2D in the first place, only in 3D:
Ok nice I will look into this 😀 this will be my first Godot PR 😁
Describe the project you are working on
A 2D Shoot'em up game
Describe the problem or limitation you are having in your project
I am trying to visualize a laser loading by pulling in particles in some radius.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
With the emission shape ring, particles would be generated in a ring.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Add a enum Variant EMISSION_SHAPE_RING to the EmissionShape Enum. Give this emission shape the properties emission_ring_inner_radius and emission_ring_outer_radius and uniformly sample in the ring between those circles the following way:
I think I should be able to write a PR for this.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't think it can be worked around with a few lines of code but maybe with emission masks by loading in a texture of a ring. But this would not be very flexible because you wouldn't be able to change the sizes of the rings easily.
Is there a reason why this should be core and not an add-on in the asset library?
Because there already exists a similar feature in 3D and also I think there was such an emission shape in the 3.x versions of the particle systems (I have seen it in a tutorial once)