C# Class Box2DX.Dynamics.GearJointDef

Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work). The provided joints must attach a dynamic body to a static body.
Inheritance: JointDef
Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
Joint1 Joint
Joint2 Joint
Ratio float

Public Methods

Method Description
GearJointDef ( ) : System

Method Details

GearJointDef() public method

public GearJointDef ( ) : System
return System

Property Details

Joint1 public property

The first revolute/prismatic joint attached to the gear joint.
public Joint,Box2DX.Dynamics Joint1
return Joint

Joint2 public property

The second revolute/prismatic joint attached to the gear joint.
public Joint,Box2DX.Dynamics Joint2
return Joint

Ratio public property

The gear ratio. @see GearJoint for explanation.
public float Ratio
return float