C# Class Box2D.Dynamics.Joints.Joint

The base joint class. Joints are used to raint two bodies together in various fashions. Some joints also feature limits and motors.
Afficher le fichier Open project: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
BodyA Body
BodyB Body
CollideConnected bool
EdgeA JointEdge
EdgeB JointEdge
Index int
IslandFlag bool
Next Joint
Prev Joint
Type JointType
UserData Object

Protected Properties

Свойство Type Description
Pool IWorldPool

Méthodes publiques

Méthode Description
Create ( World argWorld, JointDef def ) : Joint
Destroy ( Joint joint ) : void
Destructor ( ) : void

Override to handle destruction of joint

GetAnchorA ( Vec2 argOut ) : void

get the anchor point on bodyA in world coordinates.

GetAnchorB ( Vec2 argOut ) : void

get the anchor point on bodyB in world coordinates.

GetReactionForce ( float inv_dt, Vec2 argOut ) : void

get the reaction force on body2 at the joint anchor in Newtons.

GetReactionTorque ( float inv_dt ) : float

get the reaction torque on body2 in N*m.

InitVelocityConstraints ( SolverData data ) : void
SolvePositionConstraints ( SolverData data ) : bool

This returns true if the position errors are within tolerance.

SolveVelocityConstraints ( SolverData data ) : void

Méthodes protégées

Méthode Description
Joint ( IWorldPool argWorldPool, JointDef def ) : System

Method Details

Create() public static méthode

public static Create ( World argWorld, JointDef def ) : Joint
argWorld World
def JointDef
Résultat Joint

Destroy() public static méthode

public static Destroy ( Joint joint ) : void
joint Joint
Résultat void

Destructor() public méthode

Override to handle destruction of joint
public Destructor ( ) : void
Résultat void

GetAnchorA() public abstract méthode

get the anchor point on bodyA in world coordinates.
public abstract GetAnchorA ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
Résultat void

GetAnchorB() public abstract méthode

get the anchor point on bodyB in world coordinates.
public abstract GetAnchorB ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
Résultat void

GetReactionForce() public abstract méthode

get the reaction force on body2 at the joint anchor in Newtons.
public abstract GetReactionForce ( float inv_dt, Vec2 argOut ) : void
inv_dt float
argOut Box2D.Common.Vec2
Résultat void

GetReactionTorque() public abstract méthode

get the reaction torque on body2 in N*m.
public abstract GetReactionTorque ( float inv_dt ) : float
inv_dt float
Résultat float

InitVelocityConstraints() public abstract méthode

public abstract InitVelocityConstraints ( SolverData data ) : void
data SolverData
Résultat void

Joint() protected méthode

protected Joint ( IWorldPool argWorldPool, JointDef def ) : System
argWorldPool IWorldPool
def JointDef
Résultat System

SolvePositionConstraints() public abstract méthode

This returns true if the position errors are within tolerance.
public abstract SolvePositionConstraints ( SolverData data ) : bool
data SolverData
Résultat bool

SolveVelocityConstraints() public abstract méthode

public abstract SolveVelocityConstraints ( SolverData data ) : void
data SolverData
Résultat void

Property Details

BodyA public_oe property

The first body attached to this joint.
public Body BodyA
Résultat Body

BodyB public_oe property

get the second body attached to this joint.
public Body BodyB
Résultat Body

CollideConnected public_oe property

Get collide connected. Note: modifying the collide connect flag won't work correctly because the flag is only checked when fixture AABBs begin to overlap.
public bool CollideConnected
Résultat bool

EdgeA public_oe property

public JointEdge,Box2D.Dynamics.Joints EdgeA
Résultat JointEdge

EdgeB public_oe property

public JointEdge,Box2D.Dynamics.Joints EdgeB
Résultat JointEdge

Index public_oe property

public int Index
Résultat int

IslandFlag public_oe property

public bool IslandFlag
Résultat bool

Next public_oe property

The next joint the world joint list.
public Joint,Box2D.Dynamics.Joints Next
Résultat Joint

Pool protected_oe property

protected IWorldPool Pool
Résultat IWorldPool

Prev public_oe property

public Joint,Box2D.Dynamics.Joints Prev
Résultat Joint

Type public_oe property

The type of the concrete joint.
public JointType Type
Résultat JointType

UserData public_oe property

The user data pointer.
public Object UserData
Résultat Object