API ReferenceSandbox
SpringJointclass
Try to keep an object a set distance away from another object. Like a spring connecting two objects.
Constructors1
Showing 1 constructors
public SpringJoint()
No results match this filter.
Properties6
Showing 6 properties
public float Sandbox.SpringJoint.Damping { get; set; }
The damping ratio of the spring, usually between 0 and 1
Returns:
float—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
Returns:
float—public float Sandbox.SpringJoint.MaxLength { get; set; }
Maximum length it should be allowed to go
Returns:
float—public float Sandbox.SpringJoint.MinLength { get; set; }
Minimum length it should be allowed to go
Returns:
float—public float Sandbox.SpringJoint.RestLength { get; set; }
Length of the spring at rest.
Returns:
float—No results match this filter.