Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CapsuleCollider.radius

Switch to Manual
public 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.

	collider.radius = 1;