Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Hatdatsat · Sep 20, 2018 at 09:03 AM · collisionparticlesystemparticleparticle collision

particle collision

So i have been messing around with particle system, and I have turned on the collision as you can see in the picture: alt text

For the most part the collision is destroying the particles but some how some of the particles magically make it threw the object (and yes the object has a mesh collider) alt text I have tried diffrent kill speeds that doesnt seem to help min on 0 and max speed on 99999 and so on. I tried with bounce on and off dampen on and off nothing seems to make a diffrence. And if particles are make it threw the object that also means some of them wont be caught in the script with

 void OnParticleCollision(GameObject other) {


collision.png (10.9 kB)
so.png (89.2 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ifurkend · Sep 20, 2018 at 11:21 AM 0
Share

Particle World collision is never meant to be absolutely accurate, ins$$anonymous$$d you should try Plane mode collision. Trigger module is the next best thing, but like plane mode collision, it needs the target colliders to be assigned beforehand.

avatar image richardkettlewell ♦♦ ifurkend · Sep 20, 2018 at 11:26 AM 0
Share

It should not leak like this.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Hatdatsat · Sep 26, 2018 at 06:54 AM

Okay i have figured out the problem!

Right now i can use particle speed of 130 without a problem!

The problem is that collision check happens with the fixed update function, and the update doesn't happen often enough.

Because it doesn't happen that often the particle can fly threw the object without the collision being detected so to give unity a change of detecting the collision we need to change 2 values.

The settings that we change to do this can be found at :

Edit -> settings (or project settings) -> Time alt text This is how it looks normally.

The 2 values that i changed fixed timestep and maximum particle timestep (the particle time step cant be lower than fixed timestep so that is why we have to change both, for particle system the maximum particle timestep is important!) alt text With these settings it works for me (less speed means you can probably use lower numbers and higher speeds means you need even more updates so it might be good to test / tweak it for your own project)

@richardkettlewell since you are the person that seems to know a lot about this might be useful info for you aswell since i see your answering a lot about this topic


time.png (6.8 kB)
updated-time.png (6.4 kB)
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image richardkettlewell ♦♦ · Sep 26, 2018 at 08:28 AM 0
Share

Just be aware that this change makes the particle simulation run many more times per frame than by default, which can be a large performance difference. At 30fps, it used to run 1 time, now it will run 6 times.

Just be sure to check your performance is still ok :)

PS. Probably you didn't need to change Fixed Timestep, only the particle timestep. Otherwise your physics and FixedUpdate scripts will be much more expensive too, which may not be needed.

avatar image Hatdatsat richardkettlewell ♦♦ · Sep 26, 2018 at 01:37 PM 0
Share

If I only change $$anonymous$$aximum Particle Timestep it changes back to the Fixed Timestep the particle timestep cant update more often than the fixed timestep @richardkettlewell

avatar image
0

Answer by richardkettlewell · Sep 20, 2018 at 09:16 AM

does the Shape Module cone overlap the cube? If so, maybe the particles that start inside the cube (the top of the cone) never receive a collision event?

What happens if you make sure there is no overlap?

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Hatdatsat · Sep 20, 2018 at 09:39 AM 0
Share

The particle come from the base of the cone (the small part) and the start point is far away enough from The object (have tested it at different distances and it keeps happening) And where the particles hit the object the object is far wider than the cone so they dont go past the object on the sides

avatar image richardkettlewell ♦♦ · Sep 20, 2018 at 09:50 AM 0
Share

ok thanks for the extra info. one other idea (but im sure you checked this) is the cube collider definitely big enough on all 3 axes that no particles miss the cube? If that's not it, I think it's worth submitting a bug report to us for this so we can properly investigate: https://unity3d.com/unity/qa/bug-reporting

avatar image Hatdatsat richardkettlewell ♦♦ · Sep 20, 2018 at 11:03 AM 1
Share

I made a clip to show it in action, I think ill have to report the bug because the cubes i have used are native cubes (the 1 in the clip is a cube with texturemap so i can paint each side differently) here is a link to a clip of the bug in action:

link text

avatar image richardkettlewell ♦♦ Hatdatsat · Sep 20, 2018 at 11:27 AM 0
Share

the start speed of 40 is interesting. i wonder if lowering that would "fix" it.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

148 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Slow Particle Down Inside Collider 1 Answer

Getting the position/intersection of collided particles 1 Answer

Let Particles sit on Collider without triggering callback - OnParticleCollisionEnter? . 1 Answer

How to keep particles moving past an obstacle after they have collided with it? 3 Answers

Particle collision problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges