s&box docs

public sealed class Sandbox.SpringJoint : Sandbox.Joint

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

Constructors

Showing 1 constructors

public SpringJoint()

Properties

Showing 6 properties

public float Sandbox.SpringJoint.Damping { get; set; }

The damping ratio of the spring, usually between 0 and 1

public Sandbox.SpringJoint.SpringForceMode Sandbox.SpringJoint.ForceMode { get; set; }

Determines which way the spring applies force. Pull = only when stretched, Push = only when compressed, Both = acts in both directions.

public float Sandbox.SpringJoint.Frequency { get; set; }

The stiffness of the spring

public float Sandbox.SpringJoint.MaxLength { get; set; }

Maximum length it should be allowed to go

public float Sandbox.SpringJoint.MinLength { get; set; }

Minimum length it should be allowed to go

public float Sandbox.SpringJoint.RestLength { get; set; }

Length of the spring at rest.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.SpringJoint

On this page