Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simultaneous cloth collision with terrain and character
#1
Hi,

Is it possible to create a cloth that can detect collisions both with a terrain collider as well as the character that is wearing the cloth? Essentially I have a character wearing a trench coat that at some point will begin crawling on the floor. The cloth now needs to collide with both the character and the terrain and not disappear into the terrain.

How would I achieve this with Obi Cloth?
Reply
#2
Just attach Obi Collider components to any colliders you want Obi Cloth to interact with. Then set your collision layers in the solver. I think Obi Cloth will collide with anything except animated mesh colliders. I can't remember whether it works on Terrain Colliders or not, but if it doesn't, it would be trivial to setup a ground-aligning box collider for the cloth to interact with, which would probably be faster to simulate anyway.
Reply