Class GearJoint

    Definition

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

    GearJoint keeps the angular velocity ratio of a pair of bodies constant.

    public class GearJoint : Constraint
    Inheritance
    object
    Constraint
    GearJoint

    Constructors

    View Source

    GearJoint(Body, Body, double, double)

    Keeps the angular velocity ratio of a pair of bodies constant.

    Declaration
    public GearJoint(Body bodyA, Body bodyB, double phase, double ratio)
    Parameters
    Type Name Description
    Body bodyA

    The first connected body.

    Body bodyB

    The second connected body.

    double phase

    The seconded connected body.

    double ratio

    Measured in absolute terms. It is currently not possible to set the ratio in relation to a third body’s angular velocity.

    Properties

    View Source

    Phase

    The phase offset of the gears.

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

    Ratio

    The ratio of a gear joint.

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

    Methods

    View Source

    IsGearJoint(Constraint)

    Check if a constraint is a GearJoint.

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