Struct ClothRootPin ​
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Pins a procedural cloth root bone rigidly to the animated bone it hangs from, for when the cloth is not simulated.
csharp
public readonly record struct ClothRootPin : IEquatable<ClothRootPin>Implements ​
Constructors ​
ClothRootPin(int, int, Matrix4x4) ​
Pins a procedural cloth root bone rigidly to the animated bone it hangs from, for when the cloth is not simulated.
csharp
public ClothRootPin(int Bone, int Anchor, Matrix4x4 Offset)Parameters ​
Bone int
The index of the cloth root bone.
Anchor int
The index of the animated bone the root follows.
Offset Matrix4x4
The root's bind pose times the inverse of the anchor's model-space bind pose.
Properties ​
Anchor ​
The index of the animated bone the root follows.
csharp
public int Anchor { get; init; }Property Value ​
int
Bone ​
The index of the cloth root bone.
csharp
public int Bone { get; init; }Property Value ​
int
Offset ​
The root's bind pose times the inverse of the anchor's model-space bind pose.
csharp
public Matrix4x4 Offset { get; init; }
