s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Components
MoveMode
chevron_left
Components
class
MoveMode
search
Constructors
lock
MoveMode
Properties
data_object
AllowFalling
data_object
AllowGrounding
data_object
Controller
Methods
functions
AddVelocity
functions
CalculateEyeTransform
functions
IsStandableSurace
functions
IsStandableSurface
functions
OnModeBegin
functions
OnModeEnd
lock
OnRotateRenderBody
lock
OnUpdateAnimatorLookDirection
lock
OnUpdateAnimatorState
lock
OnUpdateAnimatorVelocity
functions
PostPhysicsStep
functions
PrePhysicsStep
functions
Score
lock
StickToGround
lock
TrySteppingUp
functions
UpdateAnimator
functions
UpdateCamera
functions
UpdateMove
functions
UpdateRigidBody
MoveMode
A move mode for this character
class
Sandbox.Movement
.
account_tree
extends
Component
abstract
Sandbox.Engine
build
Constructors
1
MoveMode
(
)
data_object
Properties
3
AllowFalling
bool
AllowGrounding
bool
Controller
PlayerController
functions
Methods
19
AddVelocity
(
)
CalculateEyeTransform
(
)
Transform
Get the position of the player's eye
IsStandableSurace
(
result
)
bool
IsStandableSurface
(
result
)
bool
OnModeBegin
(
)
This mode has just started
OnModeEnd
(
next
)
This mode has stopped. We're swapping to another move mode.
OnRotateRenderBody
(
renderer
)
Updates the Sandbox.Component.WorldRotation of
.
OnUpdateAnimatorLookDirection
(
renderer
)
Set animation parameters on
to look towards Sandbox.Movement.MoveMode.CalculateEyeTransform.
OnUpdateAnimatorState
(
renderer
)
Sets animation parameters on
describing the movement style, like swimming, falling, or ducking.
OnUpdateAnimatorVelocity
(
renderer
)
Sets animation parameters on
based on the current Sandbox.PlayerController.Velocity and Sandbox.PlayerController.WishVelocity.
PostPhysicsStep
(
)
Called after the physics step is run
PrePhysicsStep
(
)
Called before the physics step is run
Score
(
controller
)
int
Highest number becomes the new control mode
StickToGround
(
maxDistance
)
If we're on the ground, make sure we stay there by falling to the ground
TrySteppingUp
(
maxDistance
)
If we're approaching a step, step up if possible
UpdateAnimator
(
renderer
)
Update the animator which is available at Controller.Renderer.
UpdateCamera
(
cam
)
Called to update the camera each frame
UpdateMove
(
eyes
,
input
)
Vector3
Read inputs, return WishVelocity
UpdateRigidBody
(
body
)
Inheritance
Component
MoveMode
MoveModeLadder
MoveModeSwim
MoveModeWalk
SitMoveMode
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.