Avoid spawning on top of each other when collisions are enabled.
See original GitHub issueWhich version are you using? 1.18.11
Is the latest version affected?
- Yes
- No
Which library are you using?
- Vanilla JS (
tsparticles
) - React (
react-tsparticles
) - Vue.js 2.x (
particles.vue
) - Vue.js 3.x (
particles.vue3
) - Angular (
ng-particles
) - Svelte (
svelte-particles
) - Preact (
preact-particles
) - Inferno (
inferno-particles
) - jQuery (
jquery-particles
)
Is your feature request related to a problem? Please describe. I don’t want my particles ever overlapping. Collisions solve half the issue, but they often spawn on top of each other.
Describe the solution you’d like I want the particles spawned away from each other.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to prevent particle colliders from spawning on top of each ...
1) A player: Just your run of the mill game object with a Sprite Renderer, 2D Collider, Rigidbody2D etc. · 2) Hazards: Spawned...
Read more >Preventing players from spawning on top of eachother
You'll want to use CollisionGroups to disable collision with others. Now for actually spawning the players! There's two different ways we could ...
Read more >How to prevent objects from spawning on top of each other?
Don't use the "Spawn another Object" method. Instead use "System" - "Create Object" and enter the X ,Y coordinates you want it to...
Read more >How can I prevent spawning an actor inside of another?
Is there a way to prevent the spawning of physics objects while this “Spawn cube” is colliding with the other physics objects in...
Read more >How to Prevent Spawn Overlap in Unity - YouTube
Here's a fast and easy way to prevent spawn overlap in a 2D Unity game.Try our first game, Portal Galaxy, on Google Play: ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@matteobruni ah well in that case all I had to do was change the
default
tobounce
and set the left and right toout
instead. Thanks!I’ll check that, I’ve created an option to enable/disable overlap in the
particles.collisions
section