Determines whether other rigidbodies or character controllers collide with this character controller (by default this is always enabled).
var c : CharacterController; c = GetComponent(CharacterController); c.detectCollisions = false;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public CharacterController c; void Example() { c = GetComponent<CharacterController>(); c.detectCollisions = false; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): public c as CharacterController def Example() as void: c = GetComponent[of CharacterController]() c.detectCollisions = false