Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

CharacterController.slopeLimit

Switch to Manual
public var slopeLimit: float;

Description

The character controllers slope limit in degrees.

	// Set the controller slope limit to 45.0 degrees
	var controller : CharacterController;
	controller = GetComponent(CharacterController);
	controller.slopeLimit = 45.0;