Click or drag to resize
DigitalRuneKinematicCharacterControllerStepHeight Property
Gets or sets the height of the step.

Namespace: DigitalRune.Physics.Specialized
Assembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax
public float StepHeight { get; set; }

Property Value

Type: Single
The height of the step. The default value is 0.4.
Remarks

Up steps: The character automatically tries to move up low obstacles/steps. To move up onto a step it is necessary that the obstacle is not higher than this value and that there is enough space for the character to stand on.

Down steps: If the character loses contact with the ground it tries to step down onto solid ground. If it cannot find ground within the step height, it will simply fall in a ballistic curve (defined by gravity). Here is an example why down-stepping is necessary: If the character moves horizontally on a down inclined plane, it will always touch the plane. But, if the step height is set to 0, the character will not try to step down and instead will "bounce" down the plane on short ballistic curves.

See Also