Api Sandbox SpringJoint
class

SpringJoint

public sealed class SpringJoint : Joint

Try to keep an object a set distance away from another object. Like a spring connecting two objects.

Constructors

SpringJoint()

Properties

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