SpringJointclass

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

objectJointSpringJoint
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.SpringJoint : Sandbox.Joint

Constructors1

Showing 1 constructors

public SpringJoint()PUBLICCONSTRUCTOR

Properties6

Showing 6 properties

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

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

Returns:float

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

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

Returns:SpringForceMode

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

The stiffness of the spring

Returns:float

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

Maximum length it should be allowed to go

Returns:float

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

Minimum length it should be allowed to go

Returns:float

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

Length of the spring at rest.

Returns:float

On this page