API ReferenceSandbox.Physics
public sealed struct Sandbox.Physics.PhysicsSpring
Spring related settings for joints such as `Sandbox.Physics.FixedJoint`.
Constructors
Showing 1 constructors
public PhysicsSpring(float frequency = 0, float damping = 0, float maximum = -1)
Parameters
frequency: Default: 0damping: Default: 0maximum: Default: -1
No results match this filter.
Properties
Showing 3 properties
public float Sandbox.Physics.PhysicsSpring.Damping { get; set; }
The damping ratio of the spring, usually between 0 and 1
public float Sandbox.Physics.PhysicsSpring.Frequency { get; set; }
The stiffness of the spring
public float Sandbox.Physics.PhysicsSpring.Maximum { get; set; }
For weld joints only, maximum force. Not for breaking.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Physics |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Physics.PhysicsSpring |