docs.unity3d.com
    Show / Hide Table of Contents

    Class Limb

    Utility for 2D Limb IK Solver.

    Inheritance
    Object
    Limb
    Namespace: UnityEngine.U2D.IK
    Syntax
    public static class Limb : object

    Methods

    Solve(Vector3, Single[], Vector3[], ref Single[])

    Solve based on Limb IK

    Declaration
    public static bool Solve(Vector3 targetPosition, float[] lengths, Vector3[] positions, ref float[] outAngles)
    Parameters
    Type Name Description
    Vector3 targetPosition

    Target position.

    Single[] lengths

    Length of the chains.

    Vector3[] positions

    Chain positions.

    Single[] outAngles

    Output angles for the chain's position.

    Returns
    Type Description
    Boolean

    Always returns true.

    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