Class GrooveJoint
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
GrooveJoint is similar to a PivotJoint, but with a linear slide. One of the anchor points is a line segment that the pivot can slide on instead of being fixed.
public class GrooveJoint : Constraint
- Inheritance
Constructors
View SourceGrooveJoint(Body, Body, Vect, Vect, Vect)
Create an anchor where bodyB
can rotate similar to a
PivotJoint, except it's anchored at anchorB
, which is a
point that can slide between grooveA
and grooveB
.
Declaration
public GrooveJoint(Body bodyA, Body bodyB, Vect grooveA, Vect grooveB, Vect anchorB)
Parameters
Type | Name | Description |
---|---|---|
Body | bodyA | The first connected body. |
Body | bodyB | The second connected body. |
Vect | grooveA | The start of the groove on |
Vect | grooveB | The end of the groove on |
Vect | anchorB | The location of the pivot on |
Properties
View SourceAnchorB
The location of the second anchor relative to the second body.
Declaration
public Vect AnchorB { get; set; }
Property Value
Type | Description |
---|---|
Vect |
GrooveA
The first endpoint of the groove relative to the first body.
Declaration
public Vect GrooveA { get; set; }
Property Value
Type | Description |
---|---|
Vect |
GrooveB
The second endpoint of the groove relative to the first body.
Declaration
public Vect GrooveB { get; set; }
Property Value
Type | Description |
---|---|
Vect |
Methods
View SourceIsGrooveJoint(Constraint)
Check if a constraint is a GrooveJoint.
Declaration
public static bool IsGrooveJoint(Constraint constraint)
Parameters
Type | Name | Description |
---|---|---|
Constraint | constraint |
Returns
Type | Description |
---|---|
bool |