Class RatchetJoint
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
RatchetJoint is a rotary ratchet, which works like a socket wrench.
public class RatchetJoint : Constraint
- Inheritance
Constructors
View SourceRatchetJoint(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 SourceAngle
The angle of the current ratchet tooth.
Declaration
public double Angle { get; set; }
Property Value
Type | Description |
---|---|
double |
Phase
The phase offset of the ratchet.
Declaration
public double Phase { get; set; }
Property Value
Type | Description |
---|---|
double |
Rachet
The angular distance of each ratchet.
Declaration
public double Rachet { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
View SourceIsRatchetJoint(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 |