question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid spawning on top of each other when collisions are enabled.

See original GitHub issue

Which 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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mattjiscommented, Nov 27, 2020

@matteobruni ah well in that case all I had to do was change the default to bounce and set the left and right to out instead. Thanks!

1reaction
matteobrunicommented, Nov 27, 2020

I’ll check that, I’ve created an option to enable/disable overlap in the particles.collisions section

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found