Search Unity

Possible to detect cloth collision? And/or find if it’s sleeping?

Discussion in 'Physics' started by Percy-Pea, Dec 21, 2017.

  1. Percy-Pea

    Percy-Pea

    Joined:
    Aug 31, 2014
    Posts:
    75
    I am hopefully being silly but it doesn’t seem possible to detect if cloth has been collided with. Im looking for something similar to OnCollisionEnter. Does any one have some advice?

    Thanks
     
  2. stonebits

    stonebits

    Joined:
    Nov 29, 2018
    Posts:
    3
    I'm looking for the same thing -- did you ever get this to work? The only solution I can think of at the moment is to have a script that keeps rigid body colliders "attached" (programmatically placed on each update) the cloth vertices and use the OnCollisionEnter generated from colliding with these as a surrogate for colliding with the cloth (~= to the "pom pom" solution here https://www.polygon-treehouse.com/blog/2017/8/4/howtoponcho)