API ReferenceSandbox.Physics

PhysicsSpringclass

Spring related settings for joints such as `Sandbox.Physics.FixedJoint`.

objectPhysicsSpring
Namespace
Sandbox.Physics
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Physics.PhysicsSpring

Constructors1

Showing 1 constructors

public PhysicsSpring(float frequency = 0, float damping = 0, float maximum = -1)PUBLICCONSTRUCTOR

ParameterTypeDescription
frequency = 0float
damping = 0float
maximum = -1float

Properties3

Showing 3 properties

public float Sandbox.Physics.PhysicsSpring.Damping { get; set; }PUBLICGETSET

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

Returns:float

public float Sandbox.Physics.PhysicsSpring.Frequency { get; set; }PUBLICGETSET

The stiffness of the spring

Returns:float

public float Sandbox.Physics.PhysicsSpring.Maximum { get; set; }PUBLICGETSET

For weld joints only, maximum force. Not for breaking.

Returns:float

On this page