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

A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. NOTE: this joint is not documented in the manual because it was developed to be used in the testbed. If you want to learn how to use the mouse joint, look at the testbed.
상속: Joint
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
localAnchorA Microsoft.Xna.Framework.Vector2

공개 메소드들

메소드 설명
FixedMouseJoint ( Body body, Vector2 worldAnchor ) : System.Diagnostics

This requires a world target point, tuning parameters, and the time step.

getReactionForce ( float invDt ) : Vector2
getReactionTorque ( float invDt ) : float

비공개 메소드들

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

메소드 상세

FixedMouseJoint() 공개 메소드

This requires a world target point, tuning parameters, and the time step.
public FixedMouseJoint ( Body body, Vector2 worldAnchor ) : System.Diagnostics
body Body The body.
worldAnchor Microsoft.Xna.Framework.Vector2 The target.
리턴 System.Diagnostics

getReactionForce() 공개 메소드

public getReactionForce ( float invDt ) : Vector2
invDt float
리턴 Microsoft.Xna.Framework.Vector2

getReactionTorque() 공개 메소드

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

프로퍼티 상세

localAnchorA 공개적으로 프로퍼티

The local anchor point on BodyA
public Vector2,Microsoft.Xna.Framework localAnchorA
리턴 Microsoft.Xna.Framework.Vector2