API ReferenceSandbox
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()
No results match this filter.
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.SpringJoint |