CapsuleCollider.radius

var radius : float

Description

The radius of the sphere, measured in the object's local space.

The capsule's radius will be scaled by the transform's scale.

JavaScript
collider.radius = 1;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
collider.radius = 1;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
collider.radius = 1