Package | Box2D.Dynamics.Joints |
Class | public class b2GearJointDef |
Inheritance | b2GearJointDef b2JointDef |
Source | b2GearJointDef.as |
See also
Property | Defined by | ||
---|---|---|---|
body1 : b2Body
The first attached body.
| b2JointDef | ||
body2 : b2Body
The second attached body.
| b2JointDef | ||
collideConnected : Boolean
Set this flag to true if the attached bodies should collide.
| b2JointDef | ||
joint1 : b2Joint
The first revolute/prismatic joint attached to the gear joint.
| b2GearJointDef | ||
joint2 : b2Joint
The second revolute/prismatic joint attached to the gear joint.
| b2GearJointDef | ||
ratio : Number
The gear ratio.
| b2GearJointDef | ||
type : int
The joint type is set automatically for concrete joint types.
| b2JointDef | ||
userData : *
Use this to attach application specific data to your joints.
| b2JointDef |
Method | Defined by | ||
---|---|---|---|
b2GearJointDef |
joint1 | property |
public var joint1:b2Joint
The first revolute/prismatic joint attached to the gear joint.
joint2 | property |
public var joint2:b2Joint
The second revolute/prismatic joint attached to the gear joint.
ratio | property |
b2GearJointDef | () | constructor |
public function b2GearJointDef()