Module ode :: Class Hinge2Joint
[show private | hide private]
[frames | no frames]

Type Hinge2Joint

object --+    
         |    
     Joint --+
             |
            Hinge2Joint


Hinge2 joint.

Constructor:
 Hinge2Joint(world, jointgroup=None)

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  addTorques(torque1, torque2)
Applies torque1 about axis 1, and torque2 about axis 2.
3-tuple of floats getAnchor()
Get the joint anchor point, in world coordinates.
3-tuple of floats getAnchor2()
Get the joint anchor point, in world coordinates.
float getAngle1()
Get the first hinge-2 angle (around axis 1).
float getAngle1Rate()
Get the time derivative of the first hinge-2 angle.
float getAngle2Rate()
Get the time derivative of the second hinge-2 angle.
3-tuple of floats getAxis1()
Get the first hinge-2 axis.
3-tuple of floats getAxis2()
Get the second hinge-2 axis.
  getParam(...)
  setAnchor(pos)
Set the hinge-2 anchor.
  setAxis1(axis)
Set the first hinge-2 axis.
  setAxis2(axis)
Set the second hinge-2 axis.
  setParam(...)
    Inherited from Joint
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  attach(body1, body2)
Attach the joint to some new bodies.
Body getBody(index)
Return the bodies that this joint connects.
(force1, torque1, force2, torque2) getFeedback()
Get the forces/torques applied by the joint.
  setFeedback(flag)
Create a feedback buffer.
  _destroyed(...)
Notify the joint object about an external destruction of the ODE joint.
    Inherited from object
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
ode.Joint.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
ode.Joint.__new__

addTorques(torque1, torque2)

Applies torque1 about axis 1, and torque2 about axis 2.
Parameters:
torque1 - Torque 1 magnitude
           (type=float)
torque2 - Torque 2 magnitude
           (type=float)

getAnchor()

Get the joint anchor point, in world coordinates. This returns the point on body 1. If the joint is perfectly satisfied, this will be the same as the point on body 2.
Returns:
3-tuple of floats

getAnchor2()

Get the joint anchor point, in world coordinates. This returns the point on body 2. If the joint is perfectly satisfied, this will be the same as the point on body 1.
Returns:
3-tuple of floats

getAngle1()

Get the first hinge-2 angle (around axis 1).

When the anchor or axis is set, the current position of the attached bodies is examined and that position will be the zero angle.
Returns:
float

getAngle1Rate()

Get the time derivative of the first hinge-2 angle.
Returns:
float

getAngle2Rate()

Get the time derivative of the second hinge-2 angle.
Returns:
float

getAxis1()

Get the first hinge-2 axis.
Returns:
3-tuple of floats

getAxis2()

Get the second hinge-2 axis.
Returns:
3-tuple of floats

setAnchor(pos)

Set the hinge-2 anchor.
Parameters:
pos - Anchor position
           (type=3-sequence of floats)

setAxis1(axis)

Set the first hinge-2 axis. Axis 1 and axis 2 must not lie along the same line.
Parameters:
axis - Joint axis
           (type=3-sequence of floats)

setAxis2(axis)

Set the second hinge-2 axis. Axis 1 and axis 2 must not lie along the same line.
Parameters:
axis - Joint axis
           (type=3-sequence of floats)

Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 http://epydoc.sf.net