C# 클래스 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.
상속: JointDef
파일 보기 프로젝트 열기: KrugerHeavyIndustries/box2d-unity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GroundAnchor1 System.Vector2
GroundAnchor2 System.Vector2
Length1 float
Length2 float
LocalAnchor1 System.Vector2
LocalAnchor2 System.Vector2
MaxLength1 float
MaxLength2 float
Ratio float

공개 메소드들

메소드 설명
Initialize ( Body body1, Body body2, System.Vector2 groundAnchor1, System.Vector2 groundAnchor2, System.Vector2 anchor1, System.Vector2 anchor2, float ratio ) : void
PulleyJointDef ( ) : System

메소드 상세

Initialize() 공개 메소드

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
리턴 void

PulleyJointDef() 공개 메소드

public PulleyJointDef ( ) : System
리턴 System

프로퍼티 상세

GroundAnchor1 공개적으로 프로퍼티

The first ground anchor in world coordinates. This point never moves.
public Vector2,System GroundAnchor1
리턴 System.Vector2

GroundAnchor2 공개적으로 프로퍼티

The second ground anchor in world coordinates. This point never moves.
public Vector2,System GroundAnchor2
리턴 System.Vector2

Length1 공개적으로 프로퍼티

The a reference length for the segment attached to body1.
public float Length1
리턴 float

Length2 공개적으로 프로퍼티

The a reference length for the segment attached to body2.
public float Length2
리턴 float

LocalAnchor1 공개적으로 프로퍼티

The local anchor point relative to body1's origin.
public Vector2,System LocalAnchor1
리턴 System.Vector2

LocalAnchor2 공개적으로 프로퍼티

The local anchor point relative to body2's origin.
public Vector2,System LocalAnchor2
리턴 System.Vector2

MaxLength1 공개적으로 프로퍼티

The maximum length of the segment attached to body1.
public float MaxLength1
리턴 float

MaxLength2 공개적으로 프로퍼티

The maximum length of the segment attached to body2.
public float MaxLength2
리턴 float

Ratio 공개적으로 프로퍼티

The pulley ratio, used to simulate a block-and-tackle.
public float Ratio
리턴 float