|
Will the cloth collide with itself?
Enable this only where needed, as it has a big impact on cloth performance.
GetComponent(InteractiveCloth).selfCollision = false;
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
GetComponent<InteractiveCloth>().selfCollision = false;
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
GetComponent[of InteractiveCloth]().selfCollision = false