Class SlideJoint

    Definition

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

    SlideJoint is like a PinJoint, but with a minimum and maximum distance. A chain could be modeled using this joint. It keeps the anchor points from getting too far apart, but will allow them to get closer together.

    public class SlideJoint : Constraint
    Inheritance
    object
    Constraint
    SlideJoint

    Constructors

    View Source

    SlideJoint(Body, Body, Vect, Vect, double, double)

    Create a slide constraint between two bodies.

    Declaration
    public SlideJoint(Body bodyA, Body bodyB, Vect anchorA, Vect anchorB, double min, double max)
    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.

    double min

    The minimum distance the anchor points can get to each other.

    double max

    The maximum distance the anchor points can be apart.

    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

    Maximum

    The maximum distance the joint will maintain between the two anchors.

    Declaration
    public double Maximum { get; set; }
    Property Value
    Type Description
    double
    View Source

    Minimum

    The minimum distance the joint will maintain between the two anchors

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

    Methods

    View Source

    IsSlideJoint(Constraint)

    Check if a constraint is a SlideJoint.

    Declaration
    public static bool IsSlideJoint(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