Table of Contents

Class TwistLimitConstraintComponent

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

Constructors

TwistLimitConstraintComponent()

public TwistLimitConstraintComponent()

Properties

LocalBasisA

Local space basis attached to body A against which to measure body B's transformed axis. Expressed as a 3x3 rotation matrix, the X axis corresponds with 0 degrees, the Y axis corresponds to 90 degrees, and the Z axis is the twist axis.

public Quaternion LocalBasisA { get; set; }

Property Value

Quaternion

LocalBasisB

Local space basis attached to body B that will be measured against body A's basis. Expressed as a 3x3 rotation matrix, the transformed X axis will be measured against A's X and Y axes. The Z axis is the twist axis

public Quaternion LocalBasisB { get; set; }

Property Value

Quaternion

MaximumAngle

Maximum angle between B's axis to measure and A's measurement axis

public float MaximumAngle { get; set; }

Property Value

float

MinimumAngle

Minimum angle between B's axis to measure and A's measurement axis

public float MinimumAngle { 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