Class SlideJoint
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
SlideJoint is like a PinJoint, but with a minimum and maximum distance. A chain could be modeled using this joint. It keeps the anchor points from getting too far apart, but will allow them to get closer together.
public class SlideJoint : Constraint
- Inheritance
Constructors
View SourceSlideJoint(Body, Body, Vect, Vect, double, double)
Create a slide constraint between two bodies.
Declaration
public SlideJoint(Body bodyA, Body bodyB, Vect anchorA, Vect anchorB, double min, double max)
Parameters
Type | Name | Description |
---|---|---|
Body | bodyA | One of the two bodies to connect. |
Body | bodyB | One of the two bodies to connect. |
Vect | anchorA | The anchor point for |
Vect | anchorB | The anchor point for |
double | min | The minimum distance the anchor points can get to each other. |
double | max | The maximum distance the anchor points can be apart. |
Properties
View SourceAnchorA
The location of the first anchor relative to the first body.
Declaration
public Vect AnchorA { get; set; }
Property Value
Type | Description |
---|---|
Vect |
AnchorB
The location of the second anchor relative to the second body.
Declaration
public Vect AnchorB { get; set; }
Property Value
Type | Description |
---|---|
Vect |
Maximum
The maximum distance the joint will maintain between the two anchors.
Declaration
public double Maximum { get; set; }
Property Value
Type | Description |
---|---|
double |
Minimum
The minimum distance the joint will maintain between the two anchors
Declaration
public double Minimum { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
View SourceIsSlideJoint(Constraint)
Check if a constraint is a SlideJoint.
Declaration
public static bool IsSlideJoint(Constraint constraint)
Parameters
Type | Name | Description |
---|---|---|
Constraint | constraint |
Returns
Type | Description |
---|---|
bool |