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
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
Get s&box
Sign in with Steam
Api
Classes
MoveModeWalk
chevron_left Classes
class
MoveModeWalk

Constructors

functionsMoveModeWalk

Properties

data_objectAirAccelerationdata_objectAirSpeedCapdata_objectAllowFallingdata_objectAllowGroundingdata_objectBunnyHopRecoveryTimedata_objectEnableAirStrafingdata_objectEnableBunnyHoppingdata_objectFrictiondata_objectGroundAccelerationdata_objectGroundAngledata_objectJumpMomentumRetentiondata_objectMaxVelocitydata_objectPrioritylockSmoothInputdata_objectStepDownHeightdata_objectStepUpHeightdata_objectStopSpeed

Methods

functionsAddVelocityfunctionsCalculateEyeTransformfunctionsIsStandableSurfacefunctionsOnModeEndfunctionsPostPhysicsStepfunctionsPrePhysicsStepfunctionsScorefunctionsUpdateMovefunctionsUpdateRigidBody
MoveModeWalk
class Sandbox.Movement .account_tree extends MoveMode
Sandbox.Engine

build Constructors 1

MoveModeWalk ()

data_object Properties 17

AirAcceleration
float
AirSpeedCap
float
Wish-direction speed cap; turning can still build total speed.
AllowFalling
bool
AllowGrounding
bool
BunnyHopRecoveryTime
float
Grounded seconds required when bunny hopping is disabled. Early requests are discarded.
EnableAirStrafing
bool
Allow input-driven acceleration while airborne.
EnableBunnyHopping
bool
Allow immediate repeat jumps and takeoff speeds above RunSpeed.
Friction
float
Ground friction, scaled by BrakePower.
GroundAcceleration
float
GroundAngle
float
JumpMomentumRetention
float
Fraction of ground-relative horizontal speed retained by a walking jump.
MaxVelocity
float
Per-axis velocity limit, not a total speed cap.
Priority
int
SmoothInput
bool
StepDownHeight
float
StepUpHeight
float
StopSpeed
float
Minimum speed used to calculate ground friction.

functions Methods 9

AddVelocity ()
CalculateEyeTransform ()
Transform
IsStandableSurface (result)
bool
OnModeEnd (next)
PostPhysicsStep ()
PrePhysicsStep ()
Score (controller)
int
UpdateMove (eyes, input)
Vector3
UpdateRigidBody (body)

Inheritance

Component
MoveMode
MoveModeWalk
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