Struct FeModel.FeRodConstraint ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics.Softbody
Assembly: ValveResourceFormat.dll
A distance constraint between two nodes.
csharp
public readonly record struct FeModel.FeRodConstraint : IEquatable<FeModel.FeRodConstraint>Implements ​
IEquatable<FeModel.FeRodConstraint>
Constructors ​
FeRodConstraint(int[], float, float, float, float) ​
A distance constraint between two nodes.
csharp
public FeRodConstraint(int[] Nodes, float MaxDist, float MinDist, float Weight0, float RelaxationFactor)Parameters ​
Nodes int[]
The two endpoint nodes (nNode).
MaxDist float
Maximum allowed distance (flMaxDist).
MinDist float
Minimum allowed distance (flMinDist).
Weight0 float
Share of the first node in the correction (flWeight0).
RelaxationFactor float
flRelaxationFactor.
See Also ​
Properties ​
MaxDist ​
Maximum allowed distance (flMaxDist).
csharp
public float MaxDist { get; init; }Property Value ​
float
MinDist ​
Minimum allowed distance (flMinDist).
csharp
public float MinDist { get; init; }Property Value ​
float
Nodes ​
The two endpoint nodes (nNode).
csharp
public int[] Nodes { get; init; }Property Value ​
int[]
RelaxationFactor ​
flRelaxationFactor.
csharp
public float RelaxationFactor { get; init; }Property Value ​
float
Weight0 ​
Share of the first node in the correction (flWeight0).
csharp
public float Weight0 { get; init; }Property Value ​
float

