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
0
Question by Chom1czek · Sep 20, 2015 at 11:31 AM · c#collisionparticlesparticlesystem

Particle Collision between particles

Hello there, I'm using Particle system to emit projectiles (i.e fireballs) but I don't know how to handle collision between two projectiles if they cross each other, is it even possible? Is "OnParticleCollision" gonna work with another particles? If yes then how should I reference them? Please help, thanks :) I did a little bit research but couldn't find anything what could help me out with this one.

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 Chom1czek · Sep 20, 2015 at 12:26 PM 0
Share

Would that work if ins$$anonymous$$d of creating particle emitter and attaching it on the player I would create particle emitter without attaching it on the player and just place it where I was standing while casting a projectile then I would call Raycast from the emitter and if my enemy do the same the raycasts will collide and I would know that particles will cross each other. Does it make any sense?

avatar image Chom1czek · Sep 20, 2015 at 02:12 PM 0
Share

I see that you ain't very helpful guys ;O Anyway I was experimenting with instantiating GameObjects with Rigidbodies and Colliders set to isTrigger in that way they can collide with eachother and I can catch up if they hit the enemy. Now I need to mix it with particlesystem somehow. Cheers

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by allenallenallen · Sep 21, 2015 at 03:47 PM

OnParticleCollision() doesn't work with particles colliding particles. I guess you can figure out the rest.

One thing though, particles colliding with colliders must have isTrigger NOT checked. Or else, that won't work.

I have a video for setting up OnParticleCollision(): https://www.youtube.com/watch?v=LEhOiLW_API

Use it to set up whatever you can think of.

Comment
Add comment · Show 1 · 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 Chom1czek · Sep 21, 2015 at 04:10 PM 0
Share

Thank you for your answer, I figured it out that it ain't possible but I needed to give it a try. Anyway I have already seen your video :) also I know about isTrigger needs to be unchecked. I'm still going to use ParticleSystem but in my simple straight projectiles I will be casting isTrigger collider (without mesh renderer) at the same time with particle with the same speed and if colliders collide I will just destroy them and clear particles for that projectile (cd will be long enough to avoid destroying the next particle cast of the spell) $$anonymous$$aybe it's not the best solution but until I figure out the better one I will stay with this one. Cheers!

avatar image
0

Answer by CybernetHacker14 · Oct 05, 2017 at 06:09 AM

Won't Trail Renderer work for this purpose? You just need to find the right sprite for the trail.

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

31 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

Related Questions

How do I make my particle system detect/mark a floor collision? 0 Answers

Can I shoot a ray from a particle that hit a collider? 1 Answer

Can't find a way to add particle effects to a collision 2 Answers

Spawn particles on collider surfaces in range 1 Answer

Particle Collision between particles 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