s&box docs
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: 0
  • damping: Default: 0
  • maximum: Default: -1

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.

Metadata

FieldValue
NamespaceSandbox.Physics
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Physics.PhysicsSpring

On this page