Class AimConstraint
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Points the constrained bones' +Y axis at the weighted target position.
csharp
public class AimConstraint : BaseConstraintInheritance
object ← BoneConstraintBase ← BaseConstraint ← AimConstraint
Inherited Members
BaseConstraint.Name, BaseConstraint.UpVector, BaseConstraint.ConstrainedBones, BaseConstraint.Targets, BoneConstraintBase.ReadList(Model)
Constructors
AimConstraint(KVObject)
Initializes a new instance from compiled constraint data.
csharp
public AimConstraint(KVObject data)Parameters
data KVObject
Properties
AimOffset
Gets or sets the rotation applied after aiming.
csharp
public Quaternion AimOffset { get; set; }Property Value
UpType
Gets or sets how the up direction is found: 0 the last target's rotation applied to , 1 in model space, 2 towards the last target's position, 3 in parent space. Types 0 and 2 reserve the last target for the up direction.
csharp
public int UpType { get; set; }
