Class GrooveJoint

    Definition

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

    GrooveJoint is similar to a PivotJoint, but with a linear slide. One of the anchor points is a line segment that the pivot can slide on instead of being fixed.

    public class GrooveJoint : Constraint
    Inheritance
    object
    Constraint
    GrooveJoint

    Constructors

    View Source

    GrooveJoint(Body, Body, Vect, Vect, Vect)

    Create an anchor where bodyB can rotate similar to a PivotJoint, except it's anchored at anchorB, which is a point that can slide between grooveA and grooveB.

    Declaration
    public GrooveJoint(Body bodyA, Body bodyB, Vect grooveA, Vect grooveB, Vect anchorB)
    Parameters
    Type Name Description
    Body bodyA

    The first connected body.

    Body bodyB

    The second connected body.

    Vect grooveA

    The start of the groove on bodyA. Coordinates are local to the body.

    Vect grooveB

    The end of the groove on bodyA. Coordinates are local to the body.

    Vect anchorB

    The location of the pivot on bodyB. Coordinates are local to the body.

    Properties

    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

    GrooveA

    The first endpoint of the groove relative to the first body.

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

    GrooveB

    The second endpoint of the groove relative to the first body.

    Declaration
    public Vect GrooveB { get; set; }
    Property Value
    Type Description
    Vect

    Methods

    View Source

    IsGrooveJoint(Constraint)

    Check if a constraint is a GrooveJoint.

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