CharacterControllerHelperclass

objectCharacterControllerHelper
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.CharacterControllerHelper

Constructors1

Showing 1 constructors

Methods4

Showing 4 methods

public Sandbox.SceneTraceResult TraceMove(Vector3 delta)PUBLIC

Move our position by this delta using trace. If we hit something we'll stop, we won't slide across it nicely like TryMove does.

ParameterTypeDescription
deltaVector3
Returns:SceneTraceResult

public float TryMove(float timestep)PUBLIC

Try to move to the position. Will return the fraction of the desired velocity that we traveled. Position and Velocity will be what we recommend using.

ParameterTypeDescription
timestepfloat
Returns:float

public float TryMoveWithStep(float timeDelta, float stepsize)PUBLIC

Like TryMove but will also try to step up if it hits a wall

ParameterTypeDescription
timeDeltafloat
stepsizefloat
Returns:float

On this page