VerletRopeclass

Verlet integration-based rope physics simulation component.

objectComponentVerletRope
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.VerletRope : Sandbox.Component

Constructors1

Showing 1 constructors

Methods3

Showing 3 methods

protected virtual void OnDestroy()PROTECTEDVIRTUALLIFECYCLE

Returns:void

protected virtual void OnEnabled()PROTECTEDVIRTUALLIFECYCLE

Returns:void

protected virtual void OnUpdate()PROTECTEDVIRTUALPER-FRAME

Returns:void

Properties9

Showing 9 properties

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

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

Returns:float

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

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.

Returns:float

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

Radius of the rope for collision detection.

Returns:float

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

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

Returns:int

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

Additional slack, added to the rope length.

Returns:float

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

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

Returns:float

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

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

Returns:float

On this page