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
0
Question by Lars · Feb 14, 2011 at 12:17 AM · collisiontagsparticle

OnParticleCollision

Hey guys,

I am trying to come up with a system to make my player character to burn, freeze, melt ... die in every way possible being hit by particle systems with different tags. So far, so good ... the only problem I am running into: I cannot send the particle system tag to the script attached to the player game object. Yes, OnParticleCollision is familiar, but it doesn't really help with that problem I guess. Any suggestions? Don't get me wrong, I know there are workarounds, but getting tags from colliding particles would be the direct way, as far as I understand. So ... any help IS appreciated :)

Comment
Add comment · Show 3
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 Lars · Feb 14, 2011 at 12:19 AM 0
Share

Wow! Excuse my french :) The first sentence is errr ... Sorry!

avatar image Bunny83 · Feb 14, 2011 at 01:06 AM 0
Share

$$anonymous$$aybe you forgot to add a WorldParticleCollider ? And make sure you enabled "Send Collision $$anonymous$$essage". http://unity3d.com/support/documentation/Components/class-WorldParticleCollider.html

avatar image Lars · Feb 18, 2011 at 01:24 PM 0
Share

Hi, no, everything is as it should be. Thanks!

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Eric5h5 · Feb 14, 2011 at 12:28 AM

I'm not sure why you say OnParticleCollision doesn't help; you can get the tag from OnParticleCollision (other : GameObject) easily enough.

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 Lars · Feb 18, 2011 at 01:21 PM 0
Share

Hi, thanks. Sorry for the late reply to your answer. I know that it works that way around. What I tried was to acces the particle system tag from the script attached to my player gameobject. I would attach a script here, but I have written a different approach now. But if you could still help me with that question, it would really be appreciated. I guess I am missing out something big about scripting here ...

avatar image Eric5h5 · Feb 18, 2011 at 06:48 PM 0
Share

The OnParticleCollision function is attached to the player object, and other.tag tells you the name of the colliding particle system.

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

No one has followed this question yet.

Related Questions

Slow Particle Down Inside Collider 1 Answer

Unity Particle System collision detection problem 1 Answer

A limit to the number of tags? 2 Answers

Prticle collision point 1 Answer

Objects can't detect the tag of a tilemap collider? 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