playMaker

Author Topic: Unity 5 Cloth & Prefab Collider Problem  (Read 8536 times)

ardacankirkoc

  • Playmaker Newbie
  • *
  • Posts: 19
Unity 5 Cloth & Prefab Collider Problem
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #1 on: December 19, 2015, 09:24:36 PM »
Hi,
Maybe this video can help you :


ardacankirkoc

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #2 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?
« Last Edit: December 20, 2015, 05:52:24 AM by ardacankirkoc »

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #3 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

ardacankirkoc

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #4 on: December 20, 2015, 07:59:52 PM »
Hi,

problem is cloth object does not accept runtime created object colliders.

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #5 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?

ardacankirkoc

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #6 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

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #7 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
« Last Edit: December 21, 2015, 03:49:09 PM by phannDOTde »

Pandur

  • Full Member
  • ***
  • Posts: 122
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #8 on: December 21, 2015, 06:39:25 PM »
Hey, download overlord from assetstore : 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

ardacankirkoc

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #9 on: December 21, 2015, 07:14:30 PM »
thanks, but it didn't help me

Pandur

  • Full Member
  • ***
  • Posts: 122
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #10 on: December 22, 2015, 06:18:18 AM »

ardacankirkoc

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #11 on: December 22, 2015, 06:47:27 AM »
in this video objects already exist. I'm creating runtime objects.

http://pasteboard.co/cvbxhjj.jpg

merde10

  • Playmaker Newbie
  • *
  • Posts: 46
  • new user of playmaker :)
Re: Unity 5 Cloth & Prefab Collider Problem
« Reply #12 on: June 27, 2016, 03:48:34 PM »
i had the same issue, someone fixed that?