API ReferenceSandbox.Physics
PhysicsSpringclass
Spring related settings for joints such as `Sandbox.Physics.FixedJoint`.
object→PhysicsSpring
Constructors1
Showing 1 constructors
public PhysicsSpring(float frequency = 0, float damping = 0, float maximum = -1)
| Parameter | Type | Description |
|---|---|---|
| frequency = 0 | float | — |
| damping = 0 | float | — |
| maximum = -1 | float | — |
No results match this filter.
Properties3
Showing 3 properties
public float Sandbox.Physics.PhysicsSpring.Damping { get; set; }
The damping ratio of the spring, usually between 0 and 1
Returns:
float—public float Sandbox.Physics.PhysicsSpring.Frequency { get; set; }
The stiffness of the spring
Returns:
float—public float Sandbox.Physics.PhysicsSpring.Maximum { get; set; }
For weld joints only, maximum force. Not for breaking.
Returns:
float—No results match this filter.