The Rigidbody's collision detection mode.
// Set the collision detection mode of the rigidbody to ContinuousDynamic rigidbody.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { rigidbody.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: rigidbody.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic