Trees | Index | Help |
|
---|
Module ode :: Class Joint |
|
object
--+
|
Joint
AMotor
,
BallJoint
,
ContactJoint
,
FixedJoint
,
Hinge2Joint
,
HingeJoint
,
LMotor
,
Plane2DJoint
,
SliderJoint
,
UniversalJoint
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__setattr__('name', value) <==> x.name = value | |
Attach the joint to some new bodies. | |
Body |
Return the bodies that this joint connects. |
(force1, torque1, force2, torque2) |
Get the forces/torques applied by the joint. |
Create a feedback buffer. | |
Notify the joint object about an external destruction of the ODE joint. | |
Inherited from object | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
__delattr__(...)x.__delattr__('name') <==> del x.name
|
__getattribute__(...)x.__getattribute__('name') <==> x.name
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
__setattr__(...)x.__setattr__('name', value) <==> x.name = value
|
attach(body1, body2)Attach the joint to some new bodies. A body can be attached to the environment by passing None as second body.
|
getBody(index)Return the bodies that this joint connects. If index is 0 the "first" body will be returned, corresponding to the body1 argument of the attach() method. If index is 1 the "second" body will be returned, corresponding to the body2 argument of the attach() method.
|
getFeedback()Get the forces/torques applied by the joint. If feedback is activated (i.e. setFeedback(True) was called) then this method returns a tuple (force1, torque1, force2, torque2) with the forces and torques applied to body 1 and body 2. The forces/torques are given as 3-tuples. If feedback is deactivated then the method always returns None.
|
setFeedback(flag=True)Create a feedback buffer. If flag is True then a buffer is allocated and the forces/torques applied by the joint can be read using the getFeedback() method. If flag is False the buffer is released.
|
_destroyed(...)Notify the joint object about an external destruction of the ODE joint. This method has to be called when the underlying ODE object was destroyed by someone else (e.g. by a joint group). The Python wrapper will then refrain from destroying it again. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 | http://epydoc.sf.net |