C# 클래스 Box2D.Dynamics.Joints.PulleyJointDef

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, and a pulley ratio.
상속: JointDef
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GroundAnchorA Box2D.Common.Vec2
GroundAnchorB Box2D.Common.Vec2
LengthA float
LengthB float
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
Ratio float

공개 메소드들

메소드 설명
Initialize ( Body b1, Body b2, Vec2 ga1, Vec2 ga2, Vec2 anchor1, Vec2 anchor2, float r ) : void

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.

PulleyJointDef ( ) : System.Diagnostics

메소드 상세

Initialize() 공개 메소드

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
public Initialize ( Body b1, Body b2, Vec2 ga1, Vec2 ga2, Vec2 anchor1, Vec2 anchor2, float r ) : void
b1 Body
b2 Body
ga1 Box2D.Common.Vec2
ga2 Box2D.Common.Vec2
anchor1 Box2D.Common.Vec2
anchor2 Box2D.Common.Vec2
r float
리턴 void

PulleyJointDef() 공개 메소드

public PulleyJointDef ( ) : System.Diagnostics
리턴 System.Diagnostics

프로퍼티 상세

GroundAnchorA 공개적으로 프로퍼티

The first ground anchor in world coordinates. This point never moves.
public Vec2,Box2D.Common GroundAnchorA
리턴 Box2D.Common.Vec2

GroundAnchorB 공개적으로 프로퍼티

The second ground anchor in world coordinates. This point never moves.
public Vec2,Box2D.Common GroundAnchorB
리턴 Box2D.Common.Vec2

LengthA 공개적으로 프로퍼티

The a reference length for the segment attached to bodyA.
public float LengthA
리턴 float

LengthB 공개적으로 프로퍼티

The a reference length for the segment attached to bodyB.
public float LengthB
리턴 float

LocalAnchorA 공개적으로 프로퍼티

The local anchor point relative to bodyA's origin.
public Vec2,Box2D.Common LocalAnchorA
리턴 Box2D.Common.Vec2

LocalAnchorB 공개적으로 프로퍼티

The local anchor point relative to bodyB's origin.
public Vec2,Box2D.Common LocalAnchorB
리턴 Box2D.Common.Vec2

Ratio 공개적으로 프로퍼티

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