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
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
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