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
SliderJoint
chevron_left Classes
class
SliderJoint

Constructors

functionsSliderJoint

Properties

data_objectDampingRatiodata_objectFrequencydata_objectFrictiondata_objectLimitEnableddata_objectMaxForcedata_objectMaxLengthdata_objectMinLengthdata_objectMotordata_objectTargetPositiondata_objectTargetVelocity
SliderJoint
Restrict an object to one axis, relative to another object. Like a drawer opening.
class Sandbox .account_tree extends Joint
sealedSandbox.Engine

build Constructors 1

SliderJoint ()

data_object Properties 10

DampingRatio
float
Position spring damping ratio.
Frequency
float
Position spring frequency in hertz.
Friction
float
Slider friction
LimitEnabled
Nullable`1
Explicit limit state. Null retains automatic limits from the length range.
MaxForce
float
Maximum force the velocity motor may apply.
MaxLength
float
Maximum length it should be allowed to go
MinLength
float
Minimum length it should be allowed to go
Motor
MotorMode
Chooses friction, a position spring, or a velocity motor.
TargetPosition
float
Target offset along the slider axis.
TargetVelocity
float
Target speed along the slider axis, in units per second.

Inheritance

Component
Joint
SliderJoint
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