unity turn off rigid body code example Example: how to turn on and off a rigid body rigidbody.detectionCollisions = false;