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

Game Jam III

Starts Fri 4 Sep
Theme

Theme revealed when the jam starts.

£50,000
prizepool
Read more
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
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
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter