Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Change rotation of every particle by their collsion

Discussion in 'Editor & General Support' started by Maddes, Aug 13, 2014.

  1. Maddes

    Maddes

    Joined:
    Aug 5, 2014
    Posts:
    3
    Hi

    I have got a question: Is there any possibility to have a particle system
    which particles face into the normal direction of the hidden mesh by its
    collision with that?

    Till now I did it with a damp value of 1 but this is not the perfect result I want to get :(

    Is there a "On..."-message that is send to each particle if it enters a collision?
    I'm not able to find something like that...

    Thanks for helping me :)
    Maddes
     
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
  3. Maddes999

    Maddes999

    Joined:
    Aug 13, 2014
    Posts:
    1
  4. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
  5. Maddes

    Maddes

    Joined:
    Aug 5, 2014
    Posts:
    3
    But how should I be able to rotate the one particle that fits to a several collision event only with the information saved in CollisionEvent?
    Would that mean that i have to check every particle of the particle system if it's position is nearly equal to the intersection point to manipulate it?
    I think that would be a very waste of performance... :/
     
  6. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
  7. Maddes

    Maddes

    Joined:
    Aug 5, 2014
    Posts:
    3
    Yes, thats the normal vector of the hiit surface but I don't know how I'm now able to rotate the particle that did this hit into the same direction.

    explanation: i have a bullet that instantiates a particle system by hitting a wall. Now the particles fly throw the room but I want them to face in the same direction as the normal vector is when they hit another object. That should simulate a splash of color on the object.
     
  8. Hovl

    Hovl

    Joined:
    Apr 14, 2017
    Posts:
    7
    Hi, a couple of years have passed. Did you manage to solve the problem?