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

Distance joint definition. This requires defining an anchor point on both bodies and the non-zero length of the distance joint. The definition uses local anchor points so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game.
상속: JointDef
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DampingRatio float
FrequencyHz float
Length float
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2

공개 메소드들

메소드 설명
DistanceJointDef ( ) : Box2D.Common
Initialize ( Body b1, Body b2, Vec2 anchor1, Vec2 anchor2 ) : void

Initialize the bodies, anchors, and length using the world anchors.

메소드 상세

DistanceJointDef() 공개 메소드

public DistanceJointDef ( ) : Box2D.Common
리턴 Box2D.Common

Initialize() 공개 메소드

Initialize the bodies, anchors, and length using the world anchors.
public Initialize ( Body b1, Body b2, Vec2 anchor1, Vec2 anchor2 ) : void
b1 Body First body
b2 Body Second body
anchor1 Box2D.Common.Vec2 World anchor on first body
anchor2 Box2D.Common.Vec2 World anchor on second body
리턴 void

프로퍼티 상세

DampingRatio 공개적으로 프로퍼티

The damping ratio. 0 = no damping, 1 = critical damping.
public float DampingRatio
리턴 float

FrequencyHz 공개적으로 프로퍼티

The mass-spring-damper frequency in Hertz.
public float FrequencyHz
리턴 float

Length 공개적으로 프로퍼티

The equilibrium length between the anchor points.
public float Length
리턴 float

LocalAnchorA 공개적으로 프로퍼티

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

LocalAnchorB 공개적으로 프로퍼티

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