Class GearJoint
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
GearJoint keeps the angular velocity ratio of a pair of bodies constant.
public class GearJoint : Constraint
- Inheritance
Constructors
View SourceGearJoint(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 SourcePhase
The phase offset of the gears.
Declaration
public double Phase { get; set; }
Property Value
Type | Description |
---|---|
double |
Ratio
The ratio of a gear joint.
Declaration
public double Ratio { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
View SourceIsGearJoint(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 |