s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
SpringJoint
chevron_left Classes
class
SpringJoint

Constructors

functionsSpringJoint

Properties

data_objectDampingdata_objectForceModedata_objectFrequencydata_objectMaxLengthdata_objectMinLengthdata_objectRestLength
menu
SpringJoint
Try to keep an object a set distance away from another object. Like a spring connecting two objects.
class Sandbox .account_tree extends Joint
sealedSandbox.Engine

build Constructors 1

SpringJoint ()

data_object Properties 6

Damping
float
The damping ratio of the spring, usually between 0 and 1
ForceMode
SpringForceMode
Determines which way the spring applies force. Pull = only when stretched, Push = only when compressed, Both = acts in both directions.
Frequency
float
The stiffness of the spring
MaxLength
float
Maximum length it should be allowed to go
MinLength
float
Minimum length it should be allowed to go
RestLength
float
Length of the spring at rest.

Inheritance

Component
Joint
SpringJoint
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter