C# Class Box2DX.Dynamics.Joint

显示文件 Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Protected Properties

Property Type Description
_invMass1 float
_invMass2 float
_localCenter1 System.Vector2
_type JointType
_userData object

Public Methods

Method Description
GetBody1 ( ) : Body

Get the first body attached to this joint.

GetBody2 ( ) : Body

Get the second body attached to this joint.

GetNext ( ) : Joint

Get the next joint the world joint list.

GetReactionForce ( float inv_dt ) : System.Vector2

Get the reaction force on body2 at the joint anchor.

GetReactionTorque ( float inv_dt ) : float

Get the reaction torque on body2.

GetType ( ) : JointType

Get the type of the concrete joint.

Protected Methods

Method Description
Joint ( JointDef def ) : System

Private Methods

Method Description
ComputeTransform ( Box2DX.Common.Transform &xf, System.Vector2 center, System.Vector2 localCenter, float angle ) : void
Create ( JointDef def ) : Joint
Destroy ( Joint joint ) : void
InitVelocityConstraints ( TimeStep step ) : void
SolvePositionConstraints ( float baumgarte ) : bool
SolveVelocityConstraints ( TimeStep step ) : void

Method Details

GetBody1() public method

Get the first body attached to this joint.
public GetBody1 ( ) : Body
return Body

GetBody2() public method

Get the second body attached to this joint.
public GetBody2 ( ) : Body
return Body

GetNext() public method

Get the next joint the world joint list.
public GetNext ( ) : Joint
return Joint

GetReactionForce() public abstract method

Get the reaction force on body2 at the joint anchor.
public abstract GetReactionForce ( float inv_dt ) : System.Vector2
inv_dt float
return System.Vector2

GetReactionTorque() public abstract method

Get the reaction torque on body2.
public abstract GetReactionTorque ( float inv_dt ) : float
inv_dt float
return float

GetType() public method

Get the type of the concrete joint.
public GetType ( ) : JointType
return JointType

Joint() protected method

protected Joint ( JointDef def ) : System
def JointDef
return System

Property Details

_invMass1 protected_oe property

protected float _invMass1
return float

_invMass2 protected_oe property

protected float _invMass2
return float

_localCenter1 protected_oe property

protected Vector2,System _localCenter1
return System.Vector2

_type protected_oe property

protected JointType _type
return JointType

_userData protected_oe property

protected object _userData
return object