s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
CharacterControllerHelper
chevron_left Classes
struct
CharacterControllerHelper

Constructors

functionsCharacterControllerHelper

Fields

crop_dinBouncecrop_dinMaxStandableAnglecrop_dinPositioncrop_dinTracecrop_dinVelocity

Methods

functionsTraceFromTofunctionsTraceMovefunctionsTryMovefunctionsTryMoveWithStep
CharacterControllerHelper
struct Sandbox .
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter