C# 클래스 FarseerPhysics.Dynamics.Joints.RevoluteJoint

A revolute joint rains to bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated.
상속: Joint
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
localAnchorA Vector2
localAnchorB Vector2

공개 메소드들

메소드 설명
RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System

Constructor of RevoluteJoint.

RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : System

Constructor of RevoluteJoint.

getMotorTorque ( float invDt ) : float

Gets the motor torque in N-m.

getReactionForce ( float invDt ) : Vector2
getReactionTorque ( float invDt ) : float
setLimits ( float lower, float upper ) : void

Set the joint limits, usually in meters.

비공개 메소드들

메소드 설명
RevoluteJoint ( ) : System
initVelocityConstraints ( SolverData &data ) : void
solvePositionConstraints ( SolverData &data ) : bool
solveVelocityConstraints ( SolverData &data ) : void

메소드 상세

RevoluteJoint() 공개 메소드

Constructor of RevoluteJoint.
public RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System
bodyA Body The first body.
bodyB Body The second body.
anchorA Vector2 The first body anchor.
anchorB Vector2 The second anchor.
useWorldCoordinates bool Set to true if you are using world coordinates as anchors.
리턴 System

RevoluteJoint() 공개 메소드

Constructor of RevoluteJoint.
public RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : System
bodyA Body The first body.
bodyB Body The second body.
anchor Vector2 The shared anchor.
useWorldCoordinates bool
리턴 System

getMotorTorque() 공개 메소드

Gets the motor torque in N-m.
public getMotorTorque ( float invDt ) : float
invDt float The inverse delta time
리턴 float

getReactionForce() 공개 메소드

public getReactionForce ( float invDt ) : Vector2
invDt float
리턴 Vector2

getReactionTorque() 공개 메소드

public getReactionTorque ( float invDt ) : float
invDt float
리턴 float

setLimits() 공개 메소드

Set the joint limits, usually in meters.
public setLimits ( float lower, float upper ) : void
lower float The lower limit
upper float The upper limit
리턴 void

프로퍼티 상세

localAnchorA 공개적으로 프로퍼티

The local anchor point on BodyA
public Vector2 localAnchorA
리턴 Vector2

localAnchorB 공개적으로 프로퍼티

The local anchor point on BodyB
public Vector2 localAnchorB
리턴 Vector2