C# 클래스 Project290.Physics.Dynamics.Joints.PulleyJoint

The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1 + ratio * length2 = ant Yes, the force transmitted is scaled by the ratio. The pulley also enforces a maximum length limit on both sides. This is useful to prevent one side of the pulley hitting the top.
상속: Joint
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GroundAnchorA Vector2
GroundAnchorB Vector2
LocalAnchorA Vector2
LocalAnchorB Vector2
MinPulleyLength float

공개 메소드들

메소드 설명
GetReactionForce ( float inv_dt ) : Vector2
GetReactionTorque ( float inv_dt ) : float
PulleyJoint ( Body bodyA, Body bodyB, Vector2 groundAnchorA, Vector2 groundAnchorB, Vector2 localAnchorA, Vector2 localAnchorB, float ratio ) : System

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.

비공개 메소드들

메소드 설명
InitVelocityConstraints ( TimeStep &step ) : void
SolvePositionConstraints ( ) : bool
SolveVelocityConstraints ( TimeStep &step ) : void

메소드 상세

GetReactionForce() 공개 메소드

public GetReactionForce ( float inv_dt ) : Vector2
inv_dt float
리턴 Vector2

GetReactionTorque() 공개 메소드

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
리턴 float

PulleyJoint() 공개 메소드

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.
public PulleyJoint ( Body bodyA, Body bodyB, Vector2 groundAnchorA, Vector2 groundAnchorB, Vector2 localAnchorA, Vector2 localAnchorB, float ratio ) : System
bodyA Body The first body.
bodyB Body The second body.
groundAnchorA Vector2 The ground anchor for the first body.
groundAnchorB Vector2 The ground anchor for the second body.
localAnchorA Vector2 The first body anchor.
localAnchorB Vector2 The second body anchor.
ratio float The ratio.
리턴 System

프로퍼티 상세

GroundAnchorA 공개적으로 프로퍼티

Get the first ground anchor.
public Vector2 GroundAnchorA
리턴 Vector2

GroundAnchorB 공개적으로 프로퍼티

Get the second ground anchor.
public Vector2 GroundAnchorB
리턴 Vector2

LocalAnchorA 공개적으로 프로퍼티

public Vector2 LocalAnchorA
리턴 Vector2

LocalAnchorB 공개적으로 프로퍼티

public Vector2 LocalAnchorB
리턴 Vector2

MinPulleyLength 공개적으로 프로퍼티

public float MinPulleyLength
리턴 float