Table of Contents

Class SwingLimitConstraintComponent

Namespace
Stride.BepuPhysics.Constraints
Assembly
Stride.BepuPhysics.dll
[DataContract]
[DefaultEntityComponentProcessor(typeof(ConstraintProcessor), ExecutionMode = ExecutionMode.Runtime)]
[ComponentCategory("Physics - Bepu Constraint")]
public sealed class SwingLimitConstraintComponent : TwoBodyConstraintComponent<SwingLimit>, IIdentifiable, ITwoBody, ISpring
Inheritance
object
SwingLimitConstraintComponent
Implements
Inherited Members

Constructors

SwingLimitConstraintComponent()

public SwingLimitConstraintComponent()

Properties

AxisLocalA

public Vector3 AxisLocalA { get; set; }

Property Value

Vector3

AxisLocalB

public Vector3 AxisLocalB { get; set; }

Property Value

Vector3

MaximumSwingAngle

public float MaximumSwingAngle { get; set; }

Property Value

float

Remarks

This is just a shortcut to MinimumDot were the value is in radians

MinimumDot

public float MinimumDot { get; set; }

Property Value

float

SpringDampingRatio

The ratio of the spring's actual damping to its critical damping. 0 is undamped, 1 is critically damped, and higher values are overdamped. Higher damping ratios reduce oscillations and make the connection less elastic.

public float SpringDampingRatio { get; set; }

Property Value

float

SpringFrequency

The target number of undamped oscillations per unit of time. Higher frequency values create stiffer connections, while lower values allow more elasticity in the joint.

public float SpringFrequency { get; set; }

Property Value

float