Package | Box2D.Dynamics.Joints |
Class | public class b2PulleyJointDef |
Inheritance | b2PulleyJointDef b2JointDef |
Source | b2PulleyJointDef.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 | ||
groundAnchor1 : b2Vec2
The first ground anchor in world coordinates.
| b2PulleyJointDef | ||
groundAnchor2 : b2Vec2
The second ground anchor in world coordinates.
| b2PulleyJointDef | ||
length1 : Number
The a reference length for the segment attached to body1.
| b2PulleyJointDef | ||
length2 : Number
The a reference length for the segment attached to body2.
| b2PulleyJointDef | ||
localAnchor1 : b2Vec2
The local anchor point relative to body1's origin.
| b2PulleyJointDef | ||
localAnchor2 : b2Vec2
The local anchor point relative to body2's origin.
| b2PulleyJointDef | ||
maxLength1 : Number
The maximum length of the segment attached to body1.
| b2PulleyJointDef | ||
maxLength2 : Number
The maximum length of the segment attached to body2.
| b2PulleyJointDef | ||
ratio : Number
The pulley ratio, used to simulate a block-and-tackle.
| b2PulleyJointDef | ||
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 | ||
---|---|---|---|
b2PulleyJointDef | |||
b2PulleyJointDef |
groundAnchor1 | property |
public var groundAnchor1:b2Vec2
The first ground anchor in world coordinates. This point never moves.
groundAnchor2 | property |
public var groundAnchor2:b2Vec2
The second ground anchor in world coordinates. This point never moves.
length1 | property |
public var length1:Number
The a reference length for the segment attached to body1.
length2 | property |
public var length2:Number
The a reference length for the segment attached to body2.
localAnchor1 | property |
public var localAnchor1:b2Vec2
The local anchor point relative to body1's origin.
localAnchor2 | property |
public var localAnchor2:b2Vec2
The local anchor point relative to body2's origin.
maxLength1 | property |
public var maxLength1:Number
The maximum length of the segment attached to body1.
maxLength2 | property |
public var maxLength2:Number
The maximum length of the segment attached to body2.
ratio | property |
public var ratio:Number
The pulley ratio, used to simulate a block-and-tackle.
b2PulleyJointDef | () | constructor |
public function b2PulleyJointDef()
Initialize | () | method |
public function Initialize(b1:b2Body, b2:b2Body, ga1:b2Vec2, ga2:b2Vec2, anchor1:b2Vec2, anchor2:b2Vec2, r:Number):void
Parameters
b1:b2Body |
|
b2:b2Body |
|
ga1:b2Vec2 |
|
ga2:b2Vec2 |
|
anchor1:b2Vec2 |
|
anchor2:b2Vec2 |
|
r:Number |