docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TwoBoneIKConstraintJob

    The TwoBoneIK constraint job.

    Implements
    IWeightedAnimationJob
    IAnimationJob
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Animations.Rigging
    Assembly: Unity.Animation.Rigging.dll
    Syntax
    [BurstCompile]
    public struct TwoBoneIKConstraintJob : IWeightedAnimationJob, IAnimationJob

    Fields

    hint

    The transform handle for the hint transform.

    Declaration
    public ReadOnlyTransformHandle hint
    Field Value
    Type Description
    ReadOnlyTransformHandle

    hintWeight

    The weight for which hint transform has an effect on IK calculations. This is a value in between 0 and 1.

    Declaration
    public FloatProperty hintWeight
    Field Value
    Type Description
    FloatProperty

    mid

    The transform handle for the mid transform.

    Declaration
    public ReadWriteTransformHandle mid
    Field Value
    Type Description
    ReadWriteTransformHandle

    root

    The transform handle for the root transform.

    Declaration
    public ReadWriteTransformHandle root
    Field Value
    Type Description
    ReadWriteTransformHandle

    target

    The transform handle for the target transform.

    Declaration
    public ReadOnlyTransformHandle target
    Field Value
    Type Description
    ReadOnlyTransformHandle

    targetOffset

    The offset applied to the target transform if maintainTargetPositionOffset or maintainTargetRotationOffset is enabled.

    Declaration
    public AffineTransform targetOffset
    Field Value
    Type Description
    AffineTransform

    targetPositionWeight

    The weight for which target position has an effect on IK calculations. This is a value in between 0 and 1.

    Declaration
    public FloatProperty targetPositionWeight
    Field Value
    Type Description
    FloatProperty

    targetRotationWeight

    The weight for which target rotation has an effect on IK calculations. This is a value in between 0 and 1.

    Declaration
    public FloatProperty targetRotationWeight
    Field Value
    Type Description
    FloatProperty

    tip

    The transform handle for the tip transform.

    Declaration
    public ReadWriteTransformHandle tip
    Field Value
    Type Description
    ReadWriteTransformHandle

    Properties

    jobWeight

    The main weight given to the constraint. This is a value in between 0 and 1.

    Declaration
    public FloatProperty jobWeight { readonly get; set; }
    Property Value
    Type Description
    FloatProperty

    Methods

    ProcessAnimation(AnimationStream)

    Defines what to do when processing the animation.

    Declaration
    public void ProcessAnimation(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    ProcessRootMotion(AnimationStream)

    Defines what to do when processing the root motion.

    Declaration
    public void ProcessRootMotion(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    Implements

    IWeightedAnimationJob
    IAnimationJob
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)