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
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
CharacterController
chevron_left
Components
class
CharacterController
search
Constructors
functions
CharacterController
Properties
data_object
Acceleration
data_object
Bounciness
data_object
BoundingBox
data_object
GroundAngle
data_object
GroundCollider
data_object
GroundObject
data_object
Height
data_object
IgnoreLayers
data_object
IsOnGround
data_object
Radius
data_object
StepHeight
data_object
UseCollisionRules
data_object
Velocity
Methods
functions
Accelerate
functions
ApplyFriction
lock
DrawGizmos
functions
Move
functions
MoveTo
functions
Punch
functions
TraceDirection
menu
CharacterController
Allows collision constrained movement without the need for a rigidbody. This is not affected by forces and will only move when you call the Move() method.
class
Sandbox
.
account_tree
extends
Component
Sandbox.Engine
build
Constructors
1
CharacterController
(
)
data_object
Properties
13
Acceleration
float
Bounciness
float
When jumping into walls, should we bounce off or just stop dead?
BoundingBox
BBox
GroundAngle
float
GroundCollider
Collider
GroundObject
GameObject
Height
float
IgnoreLayers
TagSet
IsOnGround
bool
Radius
float
StepHeight
float
UseCollisionRules
bool
If enabled, determine what to collide with using current project's collision rules for the Sandbox.GameObject.Tags of the containing Sandbox.GameObject.
Velocity
Vector3
functions
Methods
7
Accelerate
(
vector
)
Add acceleration to the current velocity. No need to scale by time delta - it will be done inside.
ApplyFriction
(
frictionAmount
,
stopSpeed
)
Apply an amount of friction to the current velocity. No need to scale by time delta - it will be done inside.
DrawGizmos
(
)
Move
(
)
Move a character, with this velocity
MoveTo
(
targetPosition
,
useStep
)
Move from our current position to this target position, but using tracing an sliding. This is good for different control modes like ladders and stuff.
Punch
(
amount
)
Disconnect from ground and punch our velocity. This is useful if you want the player to jump or something.
TraceDirection
(
direction
)
SceneTraceResult
Trace the controller's current position to the specified delta
Inheritance
Component
CharacterController
arrow_back_ios
1
arrow_forward_ios
trophy
0
Apr 2026
2 posts
poop
one month ago
#1
hell yea
trophy
1605
Aug 2023
6 posts
Фанат тупых никнеймов
one month ago
edited one month ago
#2
Thanks, now I can make the fly move across the screen.
UDP: GIF is not supported :(
arrow_back_ios
1
arrow_forward_ios
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.