C# Class Box2DX.Dynamics.RevoluteJointDef

Inheritance: JointDef
Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
EnableLimit bool
EnableMotor bool
LocalAnchor1 Box2DX.Common.Vec2
LocalAnchor2 Box2DX.Common.Vec2
LowerAngle float
MaxMotorTorque float
MotorSpeed float
ReferenceAngle float
UpperAngle float

Public Methods

Method Description
Initialize ( Body body1, Body body2, Vec2 anchor ) : void

Initialize the bodies, anchors, and reference angle using the world anchor.

RevoluteJointDef ( ) : System

Method Details

Initialize() public method

Initialize the bodies, anchors, and reference angle using the world anchor.
public Initialize ( Body body1, Body body2, Vec2 anchor ) : void
body1 Body
body2 Body
anchor Box2DX.Common.Vec2
return void

RevoluteJointDef() public method

public RevoluteJointDef ( ) : System
return System

Property Details

EnableLimit public property

A flag to enable joint limits.
public bool EnableLimit
return bool

EnableMotor public property

A flag to enable the joint motor.
public bool EnableMotor
return bool

LocalAnchor1 public property

The local anchor point relative to body1's origin.
public Vec2,Box2DX.Common LocalAnchor1
return Box2DX.Common.Vec2

LocalAnchor2 public property

The local anchor point relative to body2's origin.
public Vec2,Box2DX.Common LocalAnchor2
return Box2DX.Common.Vec2

LowerAngle public property

The lower angle for the joint limit (radians).
public float LowerAngle
return float

MaxMotorTorque public property

The maximum motor torque used to achieve the desired motor speed. Usually in N-m.
public float MaxMotorTorque
return float

MotorSpeed public property

The desired motor speed. Usually in radians per second.
public float MotorSpeed
return float

ReferenceAngle public property

The body2 angle minus body1 angle in the reference state (radians).
public float ReferenceAngle
return float

UpperAngle public property

The upper angle for the joint limit (radians).
public float UpperAngle
return float