s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games

Gamejams

Date
Theme

Date announced very soon. Theme revealed when the jam starts.

$50,000
prizepool
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
docsDocumentation apiAPI Reference
Resources
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter