C# Class Box2DX.Dynamics.PulleyJointDef

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.
Inheritance: JointDef
Afficher le fichier Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Méthodes publiques

Свойство Type Description
GroundAnchor1 System.Vector2
GroundAnchor2 System.Vector2
Length1 float
Length2 float
LocalAnchor1 System.Vector2
LocalAnchor2 System.Vector2
MaxLength1 float
MaxLength2 float
Ratio float

Méthodes publiques

Méthode Description
Initialize ( Body body1, Body body2, System.Vector2 groundAnchor1, System.Vector2 groundAnchor2, System.Vector2 anchor1, System.Vector2 anchor2, float ratio ) : void
PulleyJointDef ( ) : System

Method Details

Initialize() public méthode

public Initialize ( Body body1, Body body2, System.Vector2 groundAnchor1, System.Vector2 groundAnchor2, System.Vector2 anchor1, System.Vector2 anchor2, float ratio ) : void
body1 Body
body2 Body
groundAnchor1 System.Vector2
groundAnchor2 System.Vector2
anchor1 System.Vector2
anchor2 System.Vector2
ratio float
Résultat void

PulleyJointDef() public méthode

public PulleyJointDef ( ) : System
Résultat System

Property Details

GroundAnchor1 public_oe property

The first ground anchor in world coordinates. This point never moves.
public Vector2,System GroundAnchor1
Résultat System.Vector2

GroundAnchor2 public_oe property

The second ground anchor in world coordinates. This point never moves.
public Vector2,System GroundAnchor2
Résultat System.Vector2

Length1 public_oe property

The a reference length for the segment attached to body1.
public float Length1
Résultat float

Length2 public_oe property

The a reference length for the segment attached to body2.
public float Length2
Résultat float

LocalAnchor1 public_oe property

The local anchor point relative to body1's origin.
public Vector2,System LocalAnchor1
Résultat System.Vector2

LocalAnchor2 public_oe property

The local anchor point relative to body2's origin.
public Vector2,System LocalAnchor2
Résultat System.Vector2

MaxLength1 public_oe property

The maximum length of the segment attached to body1.
public float MaxLength1
Résultat float

MaxLength2 public_oe property

The maximum length of the segment attached to body2.
public float MaxLength2
Résultat float

Ratio public_oe property

The pulley ratio, used to simulate a block-and-tackle.
public float Ratio
Résultat float