Package pybox2d :: Module Box2D :: Class b2PulleyJointDef
[hide private]
[frames] | no frames]

type b2PulleyJointDef

source code


Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.

Instance Methods [hide private]
b2PulleyJointDef
__init__(self)
Pulley joint definition.
source code
 
__repr__(self) source code
 
__getstate__(self, additional_ignore=[])
Returns a dictionary representation of self, with dict(var=value [, ...])
source code
 
__setstate__(self, dict)
Takes each variable=value pair in the dictionary and sets the attributes based on them
source code
 
__swig_destroy__(...)
delete_b2PulleyJointDef(b2PulleyJointDef self)
 
Initialize(...)
b2PulleyJointDef_Initialize(b2PulleyJointDef self, b2Body body1, b2Body body2, b2Vec2 groundAnchor1, b2Vec2 groundAnchor2, b2Vec2 anchor1, b2Vec2 anchor2, float32 ratio)
source code
    Inherited from b2JointDef
 
ClearUserData(...)
b2JointDef_ClearUserData(b2JointDef self)
source code
 
GetUserData(...)
b2JointDef_GetUserData(b2JointDef self) -> PyObject
source code
 
SetUserData(...)
b2JointDef_SetUserData(b2JointDef self, PyObject data)
source code
 
__del__(self) source code
 
typeName(self)
Return the name of the joint from:...
source code
Properties [hide private]
  thisown
The membership flag
  groundAnchor1
b2PulleyJointDef_groundAnchor1_get(b2PulleyJointDef self) -> b2Vec2
  groundAnchor2
b2PulleyJointDef_groundAnchor2_get(b2PulleyJointDef self) -> b2Vec2
  localAnchor1
b2PulleyJointDef_localAnchor1_get(b2PulleyJointDef self) -> b2Vec2
  localAnchor2
b2PulleyJointDef_localAnchor2_get(b2PulleyJointDef self) -> b2Vec2
  length1
b2PulleyJointDef_length1_get(b2PulleyJointDef self) -> float32
  maxLength1
b2PulleyJointDef_maxLength1_get(b2PulleyJointDef self) -> float32
  length2
b2PulleyJointDef_length2_get(b2PulleyJointDef self) -> float32
  maxLength2
b2PulleyJointDef_maxLength2_get(b2PulleyJointDef self) -> float32
  ratio
b2PulleyJointDef_ratio_get(b2PulleyJointDef self) -> float32
    Inherited from b2JointDef
  body1
b2JointDef_body1_get(b2JointDef self) -> b2Body
  body2
b2JointDef_body2_get(b2JointDef self) -> b2Body
  collideConnected
b2JointDef_collideConnected_get(b2JointDef self) -> bool
  type
b2JointDef_type_get(b2JointDef self) -> b2JointType
  userData
GetUserData(self) -> PyObject
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.

Returns: b2PulleyJointDef
Overrides: b2JointDef.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: b2JointDef.__repr__

__getstate__(self, additional_ignore=[])

source code 

Returns a dictionary representation of self, with 
 dict(var=value [, ...])

additional_ignore can be specified to ignore certain
properties. 

Overrides: _generic_getstate

__setstate__(self, dict)

source code 

Takes each variable=value pair in the dictionary and sets the attributes based on them

Overrides: _generic_setstate

__swig_destroy__(...)

 

delete_b2PulleyJointDef(b2PulleyJointDef self)

Overrides: b2JointDef.__swig_destroy__

Initialize(...)

source code 

b2PulleyJointDef_Initialize(b2PulleyJointDef self, b2Body body1, b2Body body2, 
    b2Vec2 groundAnchor1, b2Vec2 groundAnchor2, b2Vec2 anchor1, 
    b2Vec2 anchor2, float32 ratio)

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.


Property Details [hide private]

thisown

The membership flag

groundAnchor1

b2PulleyJointDef_groundAnchor1_get(b2PulleyJointDef self) -> b2Vec2

groundAnchor2

b2PulleyJointDef_groundAnchor2_get(b2PulleyJointDef self) -> b2Vec2

localAnchor1

b2PulleyJointDef_localAnchor1_get(b2PulleyJointDef self) -> b2Vec2

localAnchor2

b2PulleyJointDef_localAnchor2_get(b2PulleyJointDef self) -> b2Vec2

length1

b2PulleyJointDef_length1_get(b2PulleyJointDef self) -> float32

maxLength1

b2PulleyJointDef_maxLength1_get(b2PulleyJointDef self) -> float32

length2

b2PulleyJointDef_length2_get(b2PulleyJointDef self) -> float32

maxLength2

b2PulleyJointDef_maxLength2_get(b2PulleyJointDef self) -> float32

ratio

b2PulleyJointDef_ratio_get(b2PulleyJointDef self) -> float32