C# Class Box2D.Dynamics.Joints.MouseJoint

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.
Inheritance: Joint
Mostrar archivo Open project: gerich-home/box2dnet

Public Properties

Property Type Description
DampingRatio float
Frequency float
IndexA int
IndexB int
InvIB float
InvMassB float
LocalCenterB Box2D.Common.Vec2
RB Box2D.Common.Vec2

Public Methods

Method Description
GetAnchorA ( Vec2 argOut ) : void
GetAnchorB ( Vec2 argOut ) : void
GetReactionForce ( float invDt, Vec2 argOut ) : void
GetReactionTorque ( float invDt ) : float
InitVelocityConstraints ( SolverData data ) : void
SolvePositionConstraints ( SolverData data ) : bool
SolveVelocityConstraints ( SolverData data ) : void

Protected Methods

Method Description
MouseJoint ( IWorldPool argWorld, MouseJointDef def ) : System.Diagnostics

Method Details

GetAnchorA() public method

public GetAnchorA ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
return void

GetAnchorB() public method

public GetAnchorB ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
return void

GetReactionForce() public method

public GetReactionForce ( float invDt, Vec2 argOut ) : void
invDt float
argOut Box2D.Common.Vec2
return void

GetReactionTorque() public method

public GetReactionTorque ( float invDt ) : float
invDt float
return float

InitVelocityConstraints() public method

public InitVelocityConstraints ( SolverData data ) : void
data SolverData
return void

MouseJoint() protected method

protected MouseJoint ( IWorldPool argWorld, MouseJointDef def ) : System.Diagnostics
argWorld IWorldPool
def MouseJointDef
return System.Diagnostics

SolvePositionConstraints() public method

public SolvePositionConstraints ( SolverData data ) : bool
data SolverData
return bool

SolveVelocityConstraints() public method

public SolveVelocityConstraints ( SolverData data ) : void
data SolverData
return void

Property Details

DampingRatio public_oe property

Gets or sets the damping ratio (dimensionless).
public float DampingRatio
return float

Frequency public_oe property

Frequency in Hertz.
public float Frequency
return float

IndexA public_oe property

public int IndexA
return int

IndexB public_oe property

public int IndexB
return int

InvIB public_oe property

public float InvIB
return float

InvMassB public_oe property

public float InvMassB
return float

LocalCenterB public_oe property

public Vec2,Box2D.Common LocalCenterB
return Box2D.Common.Vec2

RB public_oe property

public Vec2,Box2D.Common RB
return Box2D.Common.Vec2