struct CharacterControllerCreateInformation

Contains all the information required for initializing a character controller.

Public

Fields

Position

Vector3 Position

Center of the controller capsule

ContactOffset

float ContactOffset

Contact offset specifies a skin around the object within which contacts will be generated.

It should be a small positive non-zero value.

StepOffset

float StepOffset

Controls which obstacles will the character be able to automatically step over without being stopped.

This is the height of the maximum obstacle that will be stepped over (with exceptions, see ClimbingMode).

SlopeLimit

Radian SlopeLimit

Controls which slopes should the character consider too steep and won't be able to move over.

See NonWalkableMode for more information.

MinMoveDistance

float MinMoveDistance

Represents minimum distance that the character will move during a call to Move().

This is used to stop the recursive motion algorithm when the remaining distance is too small.

Height

float Height

Height between the centers of the two spheres of the controller capsule.

Radius

float Radius

Radius of the controller capsule.

Up

Vector3 Up

Up direction of controller capsule.

Determines capsule orientation.

ClimbingMode

Controls what happens when character encounters a height higher than its step offset.

NonWalkableMode

CharacterNonWalkableMode NonWalkableMode

Controls what happens when character encounters a slope higher than its slope offset.