Class TiltTwistConstraint
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Copies the twist of the first target around TiltTwistConstraint.TargetAxis onto the first constrained bone around TiltTwistConstraint.ConstrainedAxis, scaled by that bone's weight. CS2 arms and legs drive their twist bones with it.
public class TiltTwistConstraint : BaseConstraintInheritance
object ← BoneConstraintBase ← BaseConstraint ← TiltTwistConstraint
Inherited Members
BaseConstraint.Name, BaseConstraint.UpVector, BaseConstraint.ConstrainedBones, BaseConstraint.Targets, BoneConstraintBase.ReadList(Model)
Constructors
TiltTwistConstraint(KVObject)
Initializes a new instance from compiled constraint data.
public TiltTwistConstraint(KVObject data)Parameters
data KVObject
Properties
ConstrainedAxis
Gets or sets the local axis (0 X, 1 Y, 2 Z) the constrained bone is rotated around.
public int ConstrainedAxis { get; set; }Property Value
int
TargetAxis
Gets or sets the local axis (0 X, 1 Y, 2 Z) the target twist is measured around.
public int TargetAxis { get; set; }Property Value
int

