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

A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate.
상속: Joint
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LocalAnchorA Vector2
LocalAnchorB Vector2

공개 메소드들

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

You need to specify a local anchor point where they are attached and the relative body angle. The position of the anchor point is important for computing the reaction torque. You can change the anchor points relative to bodyA or bodyB by changing LocalAnchorA and/or LocalAnchorB.

비공개 메소드들

메소드 설명
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

WeldJoint() 공개 메소드

You need to specify a local anchor point where they are attached and the relative body angle. The position of the anchor point is important for computing the reaction torque. You can change the anchor points relative to bodyA or bodyB by changing LocalAnchorA and/or LocalAnchorB.
public WeldJoint ( Body bodyA, Body bodyB, Vector2 localAnchorA, Vector2 localAnchorB ) : System
bodyA Body The first body
bodyB Body The second body
localAnchorA Vector2 The first body anchor.
localAnchorB Vector2 The second body anchor.
리턴 System

프로퍼티 상세

LocalAnchorA 공개적으로 프로퍼티

public Vector2 LocalAnchorA
리턴 Vector2

LocalAnchorB 공개적으로 프로퍼티

public Vector2 LocalAnchorB
리턴 Vector2