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

type b2PrismaticJointDef

source code


Prismatic joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.

Instance Methods [hide private]
b2PrismaticJointDef
__init__(self)
Prismatic 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_b2PrismaticJointDef(b2PrismaticJointDef self)
 
Initialize(...)
b2PrismaticJointDef_Initialize(b2PrismaticJointDef self, b2Body body1, b2Body body2, b2Vec2 anchor, b2Vec2 axis)
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
  localAnchor1
b2PrismaticJointDef_localAnchor1_get(b2PrismaticJointDef self) -> b2Vec2
  localAnchor2
b2PrismaticJointDef_localAnchor2_get(b2PrismaticJointDef self) -> b2Vec2
  localAxis1
b2PrismaticJointDef_localAxis1_get(b2PrismaticJointDef self) -> b2Vec2
  referenceAngle
b2PrismaticJointDef_referenceAngle_get(b2PrismaticJointDef self) -> float32
  enableLimit
b2PrismaticJointDef_enableLimit_get(b2PrismaticJointDef self) -> bool
  lowerTranslation
b2PrismaticJointDef_lowerTranslation_get(b2PrismaticJointDef self) -> float32
  upperTranslation
b2PrismaticJointDef_upperTranslation_get(b2PrismaticJointDef self) -> float32
  enableMotor
b2PrismaticJointDef_enableMotor_get(b2PrismaticJointDef self) -> bool
  maxMotorForce
b2PrismaticJointDef_maxMotorForce_get(b2PrismaticJointDef self) -> float32
  motorSpeed
b2PrismaticJointDef_motorSpeed_get(b2PrismaticJointDef 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 

Prismatic joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.

Returns: b2PrismaticJointDef
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_b2PrismaticJointDef(b2PrismaticJointDef self)

Overrides: b2JointDef.__swig_destroy__

Initialize(...)

source code 

b2PrismaticJointDef_Initialize(b2PrismaticJointDef self, b2Body body1, b2Body body2, 
    b2Vec2 anchor, b2Vec2 axis)

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.


Property Details [hide private]

thisown

The membership flag

localAnchor1

b2PrismaticJointDef_localAnchor1_get(b2PrismaticJointDef self) -> b2Vec2

localAnchor2

b2PrismaticJointDef_localAnchor2_get(b2PrismaticJointDef self) -> b2Vec2

localAxis1

b2PrismaticJointDef_localAxis1_get(b2PrismaticJointDef self) -> b2Vec2

referenceAngle

b2PrismaticJointDef_referenceAngle_get(b2PrismaticJointDef self) -> float32

enableLimit

b2PrismaticJointDef_enableLimit_get(b2PrismaticJointDef self) -> bool

lowerTranslation

b2PrismaticJointDef_lowerTranslation_get(b2PrismaticJointDef self) -> float32

upperTranslation

b2PrismaticJointDef_upperTranslation_get(b2PrismaticJointDef self) -> float32

enableMotor

b2PrismaticJointDef_enableMotor_get(b2PrismaticJointDef self) -> bool

maxMotorForce

b2PrismaticJointDef_maxMotorForce_get(b2PrismaticJointDef self) -> float32

motorSpeed

b2PrismaticJointDef_motorSpeed_get(b2PrismaticJointDef self) -> float32