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 /
  • Help Room /
avatar image
1
Question by Rainbooow · May 07, 2016 at 12:34 PM · collider2dparticlesystemparticleparticle collision

Disabling the bouncing of particles when colliding + ignoring trigger colliders

Hello,

I am quite new to Unity, especially to the particle system. I am currently in the process of making a particle system that could be enabled/disabled from a script, which goes fine. The next step is to handle the particles collision with objects, more particularly with objects tagged as enemies. To do so, I defined in the collision editor the following parameters : alt text

And the enemies have the following components attached : alt text

Note that there are 2 colliders, one being a trigger (so that the AI can detect when something enters its attack zone and follow the target), the other being the collider of the body itself.

With this setup, I am currently facing 2 problems :

1) When hitting the colliders, the particles bounces off. Dampen, Bounce and Lifetime loss are all at 0 in the collision editor, but it does not seem to prevent the boucing. I would like the particles to behave as if there was no collision (except that the OnParticleCollision should be triggered).

2) I would like the particles to ignore the 2DCollider that behaves as a trigger, i.e., collisions should happen only with the smallest collider of my enemies objects. Is there a way for particles to ignore trigger colliders?

Hope this is explained well enough, thanks in advance for the answers !

screen-shot-2016-05-07-at-142256.png (67.2 kB)
screen-shot-2016-05-07-at-142555.png (113.5 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by marpione · Sep 21, 2017 at 10:44 PM

You can ignore Trigger collision for Particle Systems (and Also Raycast) in 2 ways. You can put the trigger collider in a new empty object and set it's layer to a custom. Than in Particle system collision settings ignore the costom layer or go to edit => project Settings => Physics2D (or Physics) => Uncheck Quaries Hit Trigger.

Comment
Add comment · 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

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

56 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

Related Questions

Detect Color in If Statement 0 Answers

Particles don't bounce in game, but do in editor 0 Answers

While particle system is alive play animation. 0 Answers

Particle System Prefab on collision? 0 Answers

particle collision events networking 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