C# Class Box2DX.Dynamics.GearJoint

A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint. You specify a gear ratio to bind the motions together: coordinate1 + ratio * coordinate2 = constant The ratio can be negative or positive. If one joint is a revolute joint and the other joint is a prismatic joint, then the ratio will have units of length or units of 1/length. @warning The revolute and prismatic joints must be attached to fixed bodies (which must be body1 on those joints).
Inheritance: Joint
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Свойство Type Description
_J Jacobian
_constant float
_ground1 Body
_ground2 Body
_groundAnchor1 Box2DX.Common.Vec2
_groundAnchor2 Box2DX.Common.Vec2
_impulse float
_localAnchor1 Box2DX.Common.Vec2
_localAnchor2 Box2DX.Common.Vec2
_mass float
_prismatic1 PrismaticJoint
_prismatic2 PrismaticJoint
_ratio float
_revolute1 RevoluteJoint
_revolute2 RevoluteJoint

Méthodes publiques

Méthode Description
GearJoint ( GearJointDef def ) : System
GetReactionForce ( float inv_dt ) : Vec2
GetReactionTorque ( float inv_dt ) : float

Private Methods

Méthode Description
InitVelocityConstraints ( TimeStep step ) : void
SolvePositionConstraints ( float baumgarte ) : bool
SolveVelocityConstraints ( TimeStep step ) : void

Method Details

GearJoint() public méthode

public GearJoint ( GearJointDef def ) : System
def GearJointDef
Résultat System

GetReactionForce() public méthode

public GetReactionForce ( float inv_dt ) : Vec2
inv_dt float
Résultat Box2DX.Common.Vec2

GetReactionTorque() public méthode

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
Résultat float

Property Details

_J public_oe property

public Jacobian,Box2DX.Dynamics _J
Résultat Jacobian

_constant public_oe property

public float _constant
Résultat float

_ground1 public_oe property

public Body,Box2DX.Dynamics _ground1
Résultat Body

_ground2 public_oe property

public Body,Box2DX.Dynamics _ground2
Résultat Body

_groundAnchor1 public_oe property

public Vec2,Box2DX.Common _groundAnchor1
Résultat Box2DX.Common.Vec2

_groundAnchor2 public_oe property

public Vec2,Box2DX.Common _groundAnchor2
Résultat Box2DX.Common.Vec2

_impulse public_oe property

public float _impulse
Résultat float

_localAnchor1 public_oe property

public Vec2,Box2DX.Common _localAnchor1
Résultat Box2DX.Common.Vec2

_localAnchor2 public_oe property

public Vec2,Box2DX.Common _localAnchor2
Résultat Box2DX.Common.Vec2

_mass public_oe property

public float _mass
Résultat float

_prismatic1 public_oe property

public PrismaticJoint,Box2DX.Dynamics _prismatic1
Résultat PrismaticJoint

_prismatic2 public_oe property

public PrismaticJoint,Box2DX.Dynamics _prismatic2
Résultat PrismaticJoint

_ratio public_oe property

public float _ratio
Résultat float

_revolute1 public_oe property

public RevoluteJoint,Box2DX.Dynamics _revolute1
Résultat RevoluteJoint

_revolute2 public_oe property

public RevoluteJoint,Box2DX.Dynamics _revolute2
Résultat RevoluteJoint