Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Karmak · Feb 03, 2014 at 03:27 AM · collidertriggerontriggerenterparticleonparticlecollision

Register Particles going through Trigger collider

Hi, I am trying to affect particles which are passing through designated trigger colliders (box colliders).

The problem is that once I set a box collider as a trigger, the OnParticleCollision event doesn´t fire up when particle passes through it. I don´t want particle to be deflected by collider.

Is it possible? OnTriggerEnter event doesnt work with particles?

Thanks.

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 MrYOLO · Feb 27, 2014 at 09:27 AM

Hi, there. I did some test on unity, and the function OnParticleCollision for paticle system doesn't work if you check the Is Trigger of your box collider. And there's seem no way to trigger OnParticleCollision while not deflecting the particle at the same time. But you can try to make the box collider smaller then it wont deflect most of the particle also callback the OnParticleCollision function. I don't know why you want to do this, but I'm sure there 's a better way to get your target. God Luck!alt text


qq截图20140227172616.png (81.5 kB)
Comment
Add comment · Show 6 · 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 Karmak · Feb 27, 2014 at 10:10 AM 0
Share

Let´s say I want to change color of particles which passed specific destination. How would you do it?

avatar image MrYOLO · Feb 27, 2014 at 10:34 AM 0
Share

If i were you, I'll put a detector there then get the the position of each particle, and see if it passed the specific destination then change the color of it if it's so.

avatar image Karmak · Feb 27, 2014 at 10:37 AM 0
Share

Detector? Could you be more specific?

avatar image MrYOLO · Feb 27, 2014 at 10:39 AM 0
Share

you can put a gameobject where you judge if the particle passed the specific destination by comparing their coordinates.

avatar image Karmak · Feb 27, 2014 at 10:43 AM 0
Share

That sounds doable. I hope I can figure it out. Thanks for directions. Sorry I can´t recommend your answer, my rep too low.

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

20 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

Related Questions

OnTriggerEnter2d() Not Triggering While Animating. 1 Answer

Activating animation by a moving trigger 0 Answers

OnTrigger event when colliders are already touching eachother 1 Answer

Compound Triggers with no intermediary exit calls 1 Answer

Character collider falls away unless "isTrigger" selected 1 Answer


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