Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

CharacterController.radius

Switch to Manual
public float radius;

Description

The radius of the character's capsule.

using UnityEngine;

public class Example : MonoBehaviour { // Set the controller radius to 0.3f CharacterController controller;

void Start() { controller = GetComponent<CharacterController>(); controller.radius = 0.3f; } }

Did you find this page useful? Please give it a rating: