Mesh Collider not working with Cloth Component

Updated on August 6, 2018 in Unity
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on August 1, 2018

Hello, I m a bit new to Unity and trying to create a basic ball game.

I created a cloth (More like a Net for my game) in Unity.

  • First I added a Skinned Meshed Renderer Component (Plane) and scaled it accordingly then I added Cloth Component.

  • After adding constraints on cloth. When I play the game, the GameObject acts as a cloth, but when it Interact with other objects like Ball. It let is pass from it rather than deflecting and sending it back.

NOTE: I have added the Ball as Sphere collider in Cloth component of GameObject.

http://i.prntscr.com/te3Uj1PpSqufZ6Kai19p-A.png

Component Screenshot of Ball.

http://i.prntscr.com/_ZoHp3lJQ8CI_rGd8C1jqA.png

Component Screenshot of Net.

Any help would be appreciated.

  • Liked by
Reply
1 on August 2, 2018

The colliders you can add are the colliders of the objects it should be colliding with. The cloth component then will handle collision from it self ‘to wards’ the added colliders.

https://docs.unity3d.com/Manual/class-Cloth.html

 

on August 6, 2018

The colliders you can add are the colliders of the objects it should be colliding with. The cloth component then will handle collision from it self ‘to wards’ the added colliders.

https://docs.unity3d.com/Manual/class-Cloth.html

 

From maxartz15

 Yea thanks, mate. The only thing I was doing wrong was whenever you try to edit the cloth component. Instead, remove the cloth component from the object, adjust the mesh renderer accordingly and add cloth component again. 

Also, add one plan and hide its mesh renderer. So, it will act as a solid body.

Show more replies
  • Liked by
Reply
Cancel