Skip to main content

b2MouseJoint

b2MouseJoint

Box2D.Dynamics.Joints

Inheritance: System.Object → Box2D.Dynamics.Joints.b2Joint

Constructors

b2MouseJoint(b2MouseJointDef)

b2MouseJoint(b2MouseJointDef)(Box2D.Dynamics.Joints.b2MouseJointDef def)
Parameters:
def (Box2D.Dynamics.Joints.b2MouseJointDef)

Fields

m_C(Box2D.Common.b2Vec2)
m_beta(System.Single)
m_dampingRatio(System.Single)
m_frequencyHz(System.Single)
m_gamma(System.Single)
m_impulse(Box2D.Common.b2Vec2)
m_indexA(System.Int32)
m_indexB(System.Int32)
m_invIB(System.Single)
m_invMassB(System.Single)
m_localAnchorB(Box2D.Common.b2Vec2)
m_localCenterB(Box2D.Common.b2Vec2)
m_mass(Box2D.Common.b2Mat22)
m_maxForce(System.Single)
m_rB(Box2D.Common.b2Vec2)
m_targetA(Box2D.Common.b2Vec2)

Methods

GetAnchorA()

Box2D.Common.b2Vec2 GetAnchorA()()
Returns:
Box2D.Common.b2Vec2
Example

GetAnchorB()

Box2D.Common.b2Vec2 GetAnchorB()()
Returns:
Box2D.Common.b2Vec2
Example

GetDampingRatio()

System.Single GetDampingRatio()()
Returns:
System.Single

GetFrequency()

System.Single GetFrequency()()
Returns:
System.Single

GetMaxForce()

System.Single GetMaxForce()()
Returns:
System.Single

GetReactionForce(float)

Box2D.Common.b2Vec2 GetReactionForce(float)(System.Single inv_dt)
Parameters:
inv_dt (System.Single)
Returns:
Box2D.Common.b2Vec2

GetReactionTorque(float)

System.Single GetReactionTorque(float)(System.Single inv_dt)
Parameters:
inv_dt (System.Single)
Returns:
System.Single

GetTarget()

Box2D.Common.b2Vec2 GetTarget()()
Returns:
Box2D.Common.b2Vec2

InitVelocityConstraints(b2SolverData)

InitVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)
Parameters:
data (Box2D.Dynamics.b2SolverData)
Example

SetDampingRatio(float)

SetDampingRatio(float)(System.Single ratio)
Parameters:
ratio (System.Single)

SetFrequency(float)

SetFrequency(float)(System.Single hz)
Parameters:
hz (System.Single)

SetMaxForce(float)

SetMaxForce(float)(System.Single force)
Parameters:
force (System.Single)

SetTarget(b2Vec2)

SetTarget(b2Vec2)(Box2D.Common.b2Vec2 target)
Parameters:
target (Box2D.Common.b2Vec2)

SolvePositionConstraints(b2SolverData)

System.Boolean SolvePositionConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)
Parameters:
data (Box2D.Dynamics.b2SolverData)
Returns:
System.Boolean
Example

SolveVelocityConstraints(b2SolverData)

SolveVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)
Parameters:
data (Box2D.Dynamics.b2SolverData)
Example