s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
SliderJointBuilder
chevron_left
Classes
class
SliderJointBuilder
Properties
data_object
DampingRatio
data_object
EnableLimit
data_object
EnableMotor
data_object
Frequency
data_object
Friction
data_object
Limit
data_object
MaxForce
data_object
Motor
data_object
TargetPosition
data_object
TargetVelocity
Methods
functions
WithDampingRatio
functions
WithFrequency
functions
WithFriction
functions
WithLimit
functions
WithMaxForce
functions
WithTargetPosition
functions
WithTargetVelocity
SliderJointBuilder
Builds a slider joint that moves along one axis.
class
Sandbox
.
account_tree
extends
PhysicsJointBuilder
sealed
Sandbox.Engine
data_object
Properties
10
DampingRatio
float
Spring motor damping ratio.
EnableLimit
bool
Whether the joint enforces a translation limit along its axis.
EnableMotor
bool
Whether a velocity or position motor is enabled.
Frequency
float
Spring motor frequency in hertz.
Friction
float
Component-style friction, used when the motor is disabled.
Limit
Vector2
The minimum and maximum allowed translation along the joint axis.
MaxForce
float
Maximum force the velocity motor may apply.
Motor
MotorMode
The motor mode, matching the slider component.
TargetPosition
float
Spring motor target offset along the slider axis.
TargetVelocity
Vector3
World linear velocity for the motor, in units per second.
functions
Methods
7
WithDampingRatio
(
v
)
SliderJointBuilder
WithFrequency
(
v
)
SliderJointBuilder
WithFriction
(
v
)
SliderJointBuilder
Sets friction and disables the motor.
WithLimit
(
min
,
max
)
SliderJointBuilder
Sets and enables the translation limits.
WithMaxForce
(
v
)
SliderJointBuilder
WithTargetPosition
(
position
)
SliderJointBuilder
Sets and enables the target-position spring motor.
WithTargetVelocity
(
v
)
SliderJointBuilder
Sets and enables the velocity motor.
Inheritance
PhysicsJointBuilder
SliderJointBuilder
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.