Class PinJoint

    Definition

    Namespace:
    Tizen.NUI.Physics2D.Chipmunk
    Assembly:
    Tizen.NUI.Physics2D.dll

    PinJoint links shapes with a solid bar or pin. Keeps the anchor points at a set distance from one another.

    public class PinJoint : Constraint
    Inheritance
    object
    Constraint
    PinJoint

    Constructors

    View Source

    PinJoint(Body, Body, Vect, Vect)

    The distance between the two anchor points is measured when the joint is created. If you want to set a specific distance, use the setter function to override it.

    Declaration
    public PinJoint(Body bodyA, Body bodyB, Vect anchorA, Vect anchorB)
    Parameters
    Type Name Description
    Body bodyA

    One of the two bodies to connect.

    Body bodyB

    One of the two bodies to connect.

    Vect anchorA

    The anchor point for bodyA.

    Vect anchorB

    The anchor point for bodyB.

    Properties

    View Source

    AnchorA

    The location of the first anchor relative to the first body.

    Declaration
    public Vect AnchorA { get; set; }
    Property Value
    Type Description
    Vect
    View Source

    AnchorB

    The location of the second anchor relative to the second body.

    Declaration
    public Vect AnchorB { get; set; }
    Property Value
    Type Description
    Vect
    View Source

    Distance

    The distance the joint will maintain between the two anchors.

    Declaration
    public double Distance { get; set; }
    Property Value
    Type Description
    double

    Methods

    View Source

    IsPinJoint(Constraint)

    Check if a constraint is a PinJoint.

    Declaration
    public static bool IsPinJoint(Constraint constraint)
    Parameters
    Type Name Description
    Constraint constraint
    Returns
    Type Description
    bool

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX