s&box docs

public class Sandbox.VerletRope : Sandbox.Component

Verlet integration-based rope physics simulation component.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

protected virtual void OnDestroy()

protected virtual void OnEnabled()

protected virtual void OnUpdate()

Properties

Showing 9 properties

public float Sandbox.VerletRope.DampingFactor { get; set; }

Dampens rope movement. Higher values make the rope settle faster.

public float Sandbox.VerletRope.LengthOverride { get; set; }

Controls the rope's length directly, will override the initial length and slack will not be applied. When set to 0, the rope's initial length between attachment points is used.

public Sandbox.LineRenderer Sandbox.VerletRope.LinkedRenderer { get; set; }

The LineRenderer used to visualize the rope.

public float Sandbox.VerletRope.Radius { get; set; }

Radius of the rope for collision detection.

public int Sandbox.VerletRope.SegmentCount { get; set; }

Number of segments in the rope. Higher values increase visual fidelity and collision accuracy but quickly reduce performance.

public float Sandbox.VerletRope.Slack { get; set; }

Additional slack, added to the rope length.

public float Sandbox.VerletRope.SoftBendFactor { get; set; }

Controls how easily the rope bends. Lower values allow more bending, higher values make it stiffer.

public float Sandbox.VerletRope.Stiffness { get; set; }

Rope stiffness factor. Higher values make the rope more rigid.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.VerletRope

On this page