Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ardacankirkoc on December 19, 2015, 12:30:00 PM

Title: Unity 5 Cloth & Prefab Collider Problem
Post by: ardacankirkoc on December 19, 2015, 12:30:00 PM
Hi,

Creating a new game object during runtime but cloth object does not interact with created object. How do i solve it?
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: djaydino on December 19, 2015, 09:24:36 PM
Hi,
Maybe this video can help you :

Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: ardacankirkoc on December 20, 2015, 05:25:10 AM
Thanks djaydino but this is not help me.

I'm making basketball shooting game and creating ball objects runtime. My problem object colliders does not interact with a cloth (rim net). 

How i add collider at runtime?
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: phannDOTde on December 20, 2015, 07:32:20 PM
did you rule out physic issues? your ball might be too fast? all so did you double check rigid bodys are aplied? and just to make sure - force them awake since I vaguely remind that they can become a sleep on spawning on some conditions. What happens if you pool the balls - not "create" them at runtime? - just ideas where to put an eye on while searching
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: ardacankirkoc on December 20, 2015, 07:59:52 PM
Hi,

problem is cloth object does not accept runtime created object colliders.
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: phannDOTde on December 20, 2015, 09:51:44 PM
But how is it with pooled ones? make a hundred copies at the beginning (in the editor) as children of another object - hide them - get random child - enable/disable by parenting them to the world node/group node them at runtime - shouldn't this work?
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: ardacankirkoc on December 21, 2015, 10:05:53 AM
 :-\ I'm sorry I did not explain myself right.

My basic scene shot here:
http://pasteboard.co/cvbxhjj.jpg
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: phannDOTde on December 21, 2015, 03:46:18 PM
NOW I get it ;-) sorry no idea mate

Something I did years ago in a different engine  had the meshes bind to several bones which were constrained to each other with physic springs there. This way I could interact with the Bone Colliders in real time pretty similar to a ragdoll (but without limits accept spring forces)  i.e. the little cubes hat one center and 4 bones towards each corner to simulate a soft body behavior.


Edit: another idea might be to use a clever blend shape system to add deformations - not sure what your goal is though
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: Pandur on December 21, 2015, 06:39:25 PM
Hey, download overlord from assetstore : https://www.assetstore.unity3d.com/en/#!/content/48768 (https://www.assetstore.unity3d.com/en/#!/content/48768) is free and that model is from BÜMSTRÜM.He used on the overlord cloth and its work fine,good to see how it works with collider and rigidbody.Take a look hope that can help you
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: ardacankirkoc on December 21, 2015, 07:14:30 PM
thanks, but it didn't help me
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: Pandur on December 22, 2015, 06:18:18 AM
Ok hm look here :
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: ardacankirkoc on December 22, 2015, 06:47:27 AM
in this video objects already exist. I'm creating runtime objects.

http://pasteboard.co/cvbxhjj.jpg
Title: Re: Unity 5 Cloth & Prefab Collider Problem
Post by: merde10 on June 27, 2016, 03:48:34 PM
i had the same issue, someone fixed that?