| Package | Box2D.Dynamics.Joints |
| Class | public class b2LineJointDef |
| Inheritance | b2LineJointDef b2JointDef |
| Source | b2LineJointDef.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 | |
| enableLimit : Boolean
Enable/disable the joint limit.
| b2LineJointDef | ||
| enableMotor : Boolean
Enable/disable the joint motor.
| b2LineJointDef | ||
| localAnchor1 : b2Vec2
The local anchor point relative to body1's origin.
| b2LineJointDef | ||
| localAnchor2 : b2Vec2
The local anchor point relative to body2's origin.
| b2LineJointDef | ||
| localAxis1 : b2Vec2
The local translation axis in body1.
| b2LineJointDef | ||
| lowerTranslation : Number
The lower translation limit, usually in meters.
| b2LineJointDef | ||
| maxMotorForce : Number
The maximum motor torque, usually in N-m.
| b2LineJointDef | ||
| motorSpeed : Number
The desired motor speed in radians per second.
| b2LineJointDef | ||
![]() | type : int
The joint type is set automatically for concrete joint types.
| b2JointDef | |
| upperTranslation : Number
The upper translation limit, usually in meters.
| b2LineJointDef | ||
![]() | userData : *
Use this to attach application specific data to your joints.
| b2JointDef | |
| Method | Defined by | ||
|---|---|---|---|
| b2LineJointDef | |||
| b2LineJointDef | |||
| enableLimit | property |
public var enableLimit:BooleanEnable/disable the joint limit.
| enableMotor | property |
public var enableMotor:BooleanEnable/disable the joint motor.
| localAnchor1 | property |
public var localAnchor1:b2Vec2The local anchor point relative to body1's origin.
| localAnchor2 | property |
public var localAnchor2:b2Vec2The local anchor point relative to body2's origin.
| localAxis1 | property |
public var localAxis1:b2Vec2The local translation axis in body1.
| lowerTranslation | property |
public var lowerTranslation:NumberThe lower translation limit, usually in meters.
| maxMotorForce | property |
public var maxMotorForce:NumberThe maximum motor torque, usually in N-m.
| motorSpeed | property |
public var motorSpeed:NumberThe desired motor speed in radians per second.
| upperTranslation | property |
public var upperTranslation:NumberThe upper translation limit, usually in meters.
| b2LineJointDef | () | constructor |
public function b2LineJointDef()
| Initialize | () | method |
public function Initialize(b1:b2Body, b2:b2Body, anchor:b2Vec2, axis:b2Vec2):voidParameters
b1:b2Body |
|
b2:b2Body |
|
anchor:b2Vec2 |
|
axis:b2Vec2 |