Table of Contents

Class VolumeConstraintComponent

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

Constructors

VolumeConstraintComponent()

public VolumeConstraintComponent()

Properties

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

TargetScaledVolume

6 times the target volume of the tetrahedra. Computed from (ab x ac) * ad; this may be negative depending on the winding of the tetrahedron.

public float TargetScaledVolume { get; set; }

Property Value

float