public class Sandbox.VerletRope : Sandbox.Component
Verlet integration-based rope physics simulation component.
Constructors
Showing 1 constructors
public VerletRope()
No results match this filter.
Methods
Showing 3 methods
protected virtual void OnDestroy()
protected virtual void OnEnabled()
protected virtual void OnUpdate()
No results match this filter.
Properties
Showing 9 properties
public Sandbox.GameObject Sandbox.VerletRope.Attachment { get; set; }
The GameObject the end of the rope attaches to.
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.VerletRope |