C# Class Box2D.Dynamics.Joints.RevoluteJoint

A revolute joint constrains two bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated.
Inheritance: Joint
Show file Open project: gerich-home/box2dnet

Public Properties

Property Type Description
Impulse Box2D.Common.Vec3
IndexA int
IndexB int
InvIA float
InvIB float
InvMassA float
InvMassB float
LimitState LimitState
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
LocalCenterA Box2D.Common.Vec2
LocalCenterB Box2D.Common.Vec2
LowerAngle float
Mass Box2D.Common.Mat33
MotorImpulse float
MotorMass float
RA Box2D.Common.Vec2
RB Box2D.Common.Vec2
ReferenceAngle float
UpperAngle float

Public Methods

Method Description
GetAnchorA ( Vec2 argOut ) : void
GetAnchorB ( Vec2 argOut ) : void
GetMotorTorque ( float inv_dt ) : float
GetReactionForce ( float inv_dt, Vec2 argOut ) : void
GetReactionTorque ( float inv_dt ) : float
InitVelocityConstraints ( SolverData data ) : void
RevoluteJoint ( IWorldPool argWorld, RevoluteJointDef def ) : System
SolvePositionConstraints ( SolverData data ) : bool
SolveVelocityConstraints ( SolverData data ) : void
setLimits ( float lower, float upper ) : void

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

GetMotorTorque() public method

public GetMotorTorque ( float inv_dt ) : float
inv_dt float
return float

GetReactionForce() public method

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

GetReactionTorque() public method

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
return float

InitVelocityConstraints() public method

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

RevoluteJoint() public method

public RevoluteJoint ( IWorldPool argWorld, RevoluteJointDef def ) : System
argWorld IWorldPool
def RevoluteJointDef
return System

SolvePositionConstraints() public method

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

SolveVelocityConstraints() public method

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

setLimits() public method

public setLimits ( float lower, float upper ) : void
lower float
upper float
return void

Property Details

Impulse public property

public Vec3,Box2D.Common Impulse
return Box2D.Common.Vec3

IndexA public property

public int IndexA
return int

IndexB public property

public int IndexB
return int

InvIA public property

public float InvIA
return float

InvIB public property

public float InvIB
return float

InvMassA public property

public float InvMassA
return float

InvMassB public property

public float InvMassB
return float

LimitState public property

public LimitState LimitState
return LimitState

LocalAnchorA public property

public Vec2,Box2D.Common LocalAnchorA
return Box2D.Common.Vec2

LocalAnchorB public property

public Vec2,Box2D.Common LocalAnchorB
return Box2D.Common.Vec2

LocalCenterA public property

public Vec2,Box2D.Common LocalCenterA
return Box2D.Common.Vec2

LocalCenterB public property

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

LowerAngle public property

public float LowerAngle
return float

Mass public property

public Mat33,Box2D.Common Mass
return Box2D.Common.Mat33

MotorImpulse public property

public float MotorImpulse
return float

MotorMass public property

public float MotorMass
return float

RA public property

public Vec2,Box2D.Common RA
return Box2D.Common.Vec2

RB public property

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

ReferenceAngle public property

public float ReferenceAngle
return float

UpperAngle public property

public float UpperAngle
return float