Class DampedRotarySpring
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
DampedRotarySpring works like DampedSpring, but in an angular fashion.
public class DampedRotarySpring : Constraint
- Inheritance
Constructors
View SourceDampedRotarySpring(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 SourceDamping
The damping of the spring.
Declaration
public double Damping { get; set; }
Property Value
Type | Description |
---|---|
double |
RestAngle
The rest angle of the spring.
Declaration
public double RestAngle { get; set; }
Property Value
Type | Description |
---|---|
double |
Stiffness
The stiffness of the spring in force/distance.
Declaration
public double Stiffness { get; set; }
Property Value
Type | Description |
---|---|
double |
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 SourceIsDampedRotarySpring(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 |