docs.unity3d.com
    Show / Hide Table of Contents

    Class FabrikSolver2D

    Component for 2D Forward And Backward Reaching Inverse Kinematics (FABRIK) IK.

    Inheritance
    Object
    Solver2D
    FabrikSolver2D
    Inherited Members
    Solver2D.chainCount
    Solver2D.constrainRotation
    Solver2D.solveFromDefaultPose
    Solver2D.isValid
    Solver2D.allChainsHaveTargets
    Solver2D.weight
    Solver2D.OnValidate()
    Solver2D.Initialize()
    Solver2D.UpdateIK(Single)
    Solver2D.UpdateIK(List<Vector3>, Single)
    Solver2D.DoValidate()
    Solver2D.DoInitialize()
    Solver2D.GetPlaneRootTransform()
    Solver2D.GetPointOnSolverPlane(Vector3)
    Solver2D.GetWorldPositionFromSolverPlanePoint(Vector2)
    Namespace: UnityEngine.U2D.IK
    Syntax
    public class FabrikSolver2D : Solver2D

    Properties

    iterations

    Get and Set the solver's itegration count.

    Declaration
    public int iterations { get; set; }
    Property Value
    Type Description
    Int32

    tolerance

    Get and Set target distance tolerance.

    Declaration
    public float tolerance { get; set; }
    Property Value
    Type Description
    Single

    Methods

    DoPrepare()

    DoPrepare override from base class.

    Declaration
    protected override void DoPrepare()
    Overrides
    Solver2D.DoPrepare()

    DoUpdateIK(List<Vector3>)

    DoUpdateIK override from base class.

    Declaration
    protected override void DoUpdateIK(List<Vector3> effectorPositions)
    Parameters
    Type Name Description
    List<Vector3> effectorPositions

    Target position for the chain.

    Overrides
    Solver2D.DoUpdateIK(List<Vector3>)

    GetChain(Int32)

    Gets the chain in the solver by index.

    Declaration
    public override IKChain2D GetChain(int index)
    Parameters
    Type Name Description
    Int32 index

    Chain index.

    Returns
    Type Description
    IKChain2D

    Returns IKChain2D at the index.

    Overrides
    Solver2D.GetChain(Int32)

    GetChainCount()

    Returns the number of chain in the solver.

    Declaration
    protected override int GetChainCount()
    Returns
    Type Description
    Int32

    This always returns 1.

    Overrides
    Solver2D.GetChainCount()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023