API ReferenceSandbox
public sealed struct Sandbox.CharacterControllerHelper
Constructors
Showing 1 constructors
public CharacterControllerHelper(Sandbox.SceneTrace trace, Vector3 position, Vector3 velocity)
No results match this filter.
Methods
Showing 4 methods
public Sandbox.SceneTraceResult TraceFromTo(Vector3 start, Vector3 end)
Trace this from one position to another
public Sandbox.SceneTraceResult TraceMove(Vector3 delta)
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.
public float TryMove(float timestep)
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.
public float TryMoveWithStep(float timeDelta, float stepsize)
Like TryMove but will also try to step up if it hits a wall
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.CharacterControllerHelper |