Class DampedRotarySpring

    Definition

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

    DampedRotarySpring works like DampedSpring, but in an angular fashion.

    public class DampedRotarySpring : Constraint
    Inheritance
    object
    Constraint
    DampedRotarySpring

    Constructors

    View Source

    DampedRotarySpring(Body, Body, double, double, double)

    Create a damped rotary spring.

    Declaration
    public DampedRotarySpring(Body bodyA, Body bodyB, double restAngle, double stiffness, double damping)
    Parameters
    Type Name Description
    Body bodyA
    Body bodyB
    double restAngle
    double stiffness
    double damping

    Properties

    View Source

    Damping

    The damping of the spring.

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

    RestAngle

    The rest angle of the spring.

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

    Stiffness

    The stiffness of the spring in force/distance.

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

    TorqueFunction

    Damped rotary spring torque custom function callback.

    Declaration
    public Func<DampedRotarySpring, double, double> TorqueFunction { get; set; }
    Property Value
    Type Description
    Func<, , ><DampedRotarySpring, double, double>

    Methods

    View Source

    IsDampedRotarySpring(Constraint)

    Check if a constraint is a DampedRotarySpring.

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