Class RatchetJoint

    Definition

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

    RatchetJoint is a rotary ratchet, which works like a socket wrench.

    public class RatchetJoint : Constraint
    Inheritance
    object
    Constraint
    RatchetJoint

    Constructors

    View Source

    RatchetJoint(Body, Body, double, double)

    Works like a socket wrench.

    Declaration
    public RatchetJoint(Body bodyA, Body bodyB, double phase, double ratchet)
    Parameters
    Type Name Description
    Body bodyA

    One of the two bodies to connect.

    Body bodyB

    One of the two bodies to connect.

    double phase

    The initial offset to use when deciding where the ratchet angles are.

    double ratchet

    The distance between "clicks" (following the socket wrench analogy).

    Properties

    View Source

    Angle

    The angle of the current ratchet tooth.

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

    Phase

    The phase offset of the ratchet.

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

    Rachet

    The angular distance of each ratchet.

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

    Methods

    View Source

    IsRatchetJoint(Constraint)

    Check if a constraint is a RatchetJoint.

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