s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
CharacterControllerHelper
chevron_left
Classes
struct
CharacterControllerHelper
Constructors
functions
CharacterControllerHelper
Fields
crop_din
Bounce
crop_din
MaxStandableAngle
crop_din
Position
crop_din
Trace
crop_din
Velocity
Methods
functions
TraceFromTo
functions
TraceMove
functions
TryMove
functions
TryMoveWithStep
CharacterControllerHelper
struct
Sandbox
.
sealed
Sandbox.Engine
build
Constructors
1
CharacterControllerHelper
(
trace
,
position
,
velocity
)
crop_din
Fields
5
Bounce
float
MaxStandableAngle
float
Position
Vector3
Trace
SceneTrace
Velocity
Vector3
functions
Methods
4
TraceFromTo
(
start
,
end
)
SceneTraceResult
Trace this from one position to another
TraceMove
(
delta
)
SceneTraceResult
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.
TryMove
(
timestep
)
float
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.
TryMoveWithStep
(
timeDelta
,
stepsize
)
float
Like TryMove but will also try to step up if it hits a wall
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.