Module Expr Str Assign NameStore Str Assign NameStore Str Import alias identifier ImportFrom alias identifier ImportFrom alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num TupleLoad Num Num body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Expr Str If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword Str decorator_list
N/A N/A A constraint is something that describes how two bodies interact with 
each other. (how they constrain each other). Constraints can be simple 
joints that allow bodies to pivot around each other like the bones in your 
body, or they can be more abstract like the gear joint or motors. 

This submodule contain all the constraints that are supported by pymunk.

Chipmunk has a good overview of the different constraint on youtube which 
works fine to showcase them in pymunk as well. 
http://www.youtube.com/watch?v=ZgJJZTS0aMM

.. raw:: html
    
    <iframe width="420" height="315" style="display: block; margin: 0 auto;"
    src="http://www.youtube.com/embed/ZgJJZTS0aMM" frameborder="0" 
    allowfullscreen></iframe>
    
 N/A __version__ $Id$ N/A __docformat__ reStructuredText N/A ctypes ct N/A _chipmunk cp N/A _chipmunk_ffi cpffi Constraint N/A object N/A N/A Base class of all constraints. 
    
    You usually don't want to create instances of this class directly, but 
    instead use one of the specific constraints such as the PinJoint.
     __init__ N/A N/A self constraint N/A None N/A N/A N/A self _constraint constraint N/A N/A self _ccontents N/A N/A self _constraint contents N/A _get_max_force N/A N/A self N/A N/A N/A N/A N/A self _ccontents maxForce N/A _set_max_force N/A N/A self f N/A N/A N/A N/A N/A self _ccontents maxForce f N/A N/A max_force N/A property _get_max_force _set_max_force doc The maximum force that the constraint can use to act on the two 
        bodies. Defaults to infinity _get_error_bias N/A N/A self N/A N/A N/A N/A N/A self _ccontents errorBias N/A _set_error_bias N/A N/A self error_bias N/A N/A N/A N/A N/A self _ccontents errorBias error_bias N/A N/A error_bias N/A property _get_error_bias _set_error_bias doc The rate at which joint error is corrected.

        Defaults to pow(1.0 - 0.1, 60.0) meaning that it will correct 10% of 
        the error every 1/60th of a second. _get_max_bias N/A N/A self N/A N/A N/A N/A N/A self _ccontents maxBias N/A _set_max_bias N/A N/A self max_bias N/A N/A N/A N/A N/A self _ccontents maxBias max_bias N/A N/A max_bias N/A property _get_max_bias _set_max_bias doc The maximum rate at which joint error is corrected. Defaults 
        to infinity _get_impulse N/A N/A self N/A N/A N/A N/A N/A cpffi cpConstraintGetImpulse N/A self _constraint N/A N/A impulse N/A property _get_impulse doc Get the last impulse applied by this constraint. N/A a N/A property N/A N/A N/A self N/A N/A self _a doc The first of the two bodies constrained N/A b N/A property N/A N/A N/A self N/A N/A self _b doc The second of the two bodies constrained activate_bodies N/A N/A self N/A N/A N/A Activate the bodies this constraint is attached to N/A N/A N/A N/A self _a activate N/A N/A N/A N/A self _b activate N/A _set_bodies N/A N/A self a b N/A N/A N/A N/A self _a a N/A N/A self _b b N/A N/A N/A N/A a _constraints add self N/A N/A N/A N/A b _constraints add self N/A __del__ N/A N/A self N/A N/A N/A N/A cp None N/A N/A N/A N/A cp cpConstraintFree N/A self _constraint N/A N/A PinJoint N/A Constraint N/A N/A Keeps the anchor points at a set distance from one another. __init__ N/A N/A self a b anchr1 anchr2 N/A N/A 0 0 N/A 0 0 N/A N/A a and b are the two bodies to connect, and anchr1 and anchr2 are the
        anchor points on those bodies.
         N/A N/A self _constraint N/A N/A cp cpPinJointNew N/A a _body N/A b _body anchr1 anchr2 N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _pjc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpPinJoint contents N/A N/A N/A self _set_bodies a b N/A _get_anchr1 N/A N/A self N/A N/A N/A N/A N/A self _pjc anchr1 N/A _set_anchr1 N/A N/A self anchr N/A N/A N/A N/A N/A self _pjc anchr1 anchr N/A N/A anchr1 N/A property _get_anchr1 _set_anchr1 _get_anchr2 N/A N/A self N/A N/A N/A N/A N/A self _pjc anchr2 N/A _set_anchr2 N/A N/A self anchr N/A N/A N/A N/A N/A self _pjc anchr2 anchr N/A N/A anchr2 N/A property _get_anchr2 _set_anchr2 _get_dist N/A N/A self N/A N/A N/A N/A N/A self _pjc dist N/A _set_dist N/A N/A self dist N/A N/A N/A N/A N/A self _pjc dist dist N/A N/A distance N/A property _get_dist _set_dist N/A SlideJoint N/A Constraint N/A N/A Like pin joints, but have a minimum and maximum distance.
    A chain could be modeled using this joint. It keeps the anchor points 
    from getting to far apart, but will allow them to get closer together.
     __init__ N/A N/A self a b anchr1 anchr2 min max N/A N/A N/A a and b are the two bodies to connect, anchr1 and anchr2 are the
        anchor points on those bodies, and min and max define the allowed
        distances of the anchor points.
         N/A N/A self _constraint N/A N/A cp cpSlideJointNew N/A a _body N/A b _body anchr1 anchr2 min max N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _sjc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpSlideJoint contents N/A N/A N/A self _set_bodies a b N/A _get_anchr1 N/A N/A self N/A N/A N/A N/A N/A self _sjc anchr1 N/A _set_anchr1 N/A N/A self anchr N/A N/A N/A N/A N/A self _sjc anchr1 anchr N/A N/A anchr1 N/A property _get_anchr1 _set_anchr1 _get_anchr2 N/A N/A self N/A N/A N/A N/A N/A self _sjc anchr2 N/A _set_anchr2 N/A N/A self anchr N/A N/A N/A N/A N/A self _sjc anchr2 anchr N/A N/A anchr2 N/A property _get_anchr2 _set_anchr2 _get_min N/A N/A self N/A N/A N/A N/A N/A self _sjc min N/A _set_min N/A N/A self min N/A N/A N/A N/A N/A self _sjc min min N/A N/A min N/A property _get_min _set_min _get_max N/A N/A self N/A N/A N/A N/A N/A self _sjc max N/A _set_max N/A N/A self max N/A N/A N/A N/A N/A self _sjc max max N/A N/A max N/A property _get_max _set_max N/A PivotJoint N/A Constraint N/A N/A Simply allow two objects to pivot about a single point. __init__ N/A N/A self a b N/A args N/A N/A a and b are the two bodies to connect, and pivot is the point in
        world coordinates of the pivot. Because the pivot location is given in
        world coordinates, you must have the bodies moved into the correct
        positions already. 
        Alternatively you can specify the joint based on a pair of anchor 
        points, but make sure you have the bodies in the right place as the 
        joint will fix itself as soon as you start simulating the space. 
        
        That is, either create the joint with PivotJoint(a, b, pivot) or 
        PivotJoint(a, b, anchr1, anchr2).
        
            a : `Body`
                The first of the two bodies
            b : `Body`
                The second of the two bodies
            args : [Vec2d] or [Vec2d,Vec2d]
                Either one pivot point, or two anchor points
         N/A N/A N/A len args 1 N/A N/A N/A self _constraint N/A N/A cp cpPivotJointNew N/A a _body N/A b _body N/A args N/A 0 N/A N/A N/A N/A len args 2 N/A N/A N/A self _constraint N/A N/A cp cpPivotJointNew2 N/A a _body N/A b _body N/A args N/A 0 N/A args N/A 1 N/A N/A N/A Exception You must specify either one pivot point or two anchor points N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _pjc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpPivotJoint contents N/A N/A N/A self _set_bodies a b N/A _get_anchr1 N/A N/A self N/A N/A N/A N/A N/A self _pjc anchr1 N/A _set_anchr1 N/A N/A self anchr N/A N/A N/A N/A N/A self _pjc anchr1 anchr N/A N/A anchr1 N/A property _get_anchr1 _set_anchr1 _get_anchr2 N/A N/A self N/A N/A N/A N/A N/A self _pjc anchr2 N/A _set_anchr2 N/A N/A self anchr N/A N/A N/A N/A N/A self _pjc anchr2 anchr N/A N/A anchr2 N/A property _get_anchr2 _set_anchr2 N/A GrooveJoint N/A Constraint N/A N/A Similar to a pivot joint, but one of the anchors is
    on a linear slide instead of being fixed.
     __init__ N/A N/A self a b groove_a groove_b anchr2 N/A N/A N/A The groove goes from groove_a to groove_b on body a, and the pivot 
        is attached to anchr2 on body b. All coordinates are body local. 
         N/A N/A self _constraint N/A N/A cp cpGrooveJointNew N/A a _body N/A b _body groove_a groove_b anchr2 N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _pjc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpGrooveJoint contents N/A N/A N/A self _set_bodies a b N/A _get_anchr2 N/A N/A self N/A N/A N/A N/A N/A self _pjc anchr2 N/A _set_anchr2 N/A N/A self anchr N/A N/A N/A N/A N/A self _pjc anchr2 anchr N/A N/A anchr2 N/A property _get_anchr2 _set_anchr2 _get_groove_a N/A N/A self N/A N/A N/A N/A N/A self _pjc grv_a N/A N/A groove_a N/A property _get_groove_a _get_groove_b N/A N/A self N/A N/A N/A N/A N/A self _pjc grv_b N/A N/A groove_b N/A property _get_groove_b N/A DampedSpring N/A Constraint N/A N/A A damped spring __init__ N/A N/A self a b anchr1 anchr2 rest_length stiffness damping N/A N/A N/A Defined much like a slide joint. 
        
        :Parameters:
            anchr1 : Vec2d or (x,y)
                Anchor point 1, relative to body a
            anchr2 : Vec2d or (x,y)
                Anchor point 2, relative to body b
            rest_length : float
                The distance the spring wants to be.
            stiffness : float
                The spring constant (Young's modulus). 
            damping : float
                How soft to make the damping of the spring. 
         N/A N/A self _constraint N/A N/A cp cpDampedSpringNew N/A a _body N/A b _body anchr1 anchr2 rest_length stiffness damping N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _dsc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpDampedSpring contents N/A N/A N/A self _set_bodies a b N/A _get_anchr1 N/A N/A self N/A N/A N/A N/A N/A self _dsc anchr1 N/A _set_anchr1 N/A N/A self anchr N/A N/A N/A N/A N/A self _dsc anchr1 anchr N/A N/A anchr1 N/A property _get_anchr1 _set_anchr1 _get_anchr2 N/A N/A self N/A N/A N/A N/A N/A self _dsc anchr2 N/A _set_anchr2 N/A N/A self anchr N/A N/A N/A N/A N/A self _dsc anchr2 anchr N/A N/A anchr2 N/A property _get_anchr2 _set_anchr2 _get_rest_length N/A N/A self N/A N/A N/A N/A N/A self _dsc restLength N/A _set_rest_length N/A N/A self rest_length N/A N/A N/A N/A N/A self _dsc restLength rest_length N/A N/A rest_length N/A property _get_rest_length _set_rest_length doc The distance the spring wants to be. _get_stiffness N/A N/A self N/A N/A N/A N/A N/A self _dsc stiffness N/A _set_stiffness N/A N/A self stiffness N/A N/A N/A N/A N/A self _dsc stiffness stiffness N/A N/A stiffness N/A property _get_stiffness _set_stiffness doc The spring constant (Young's modulus). _get_damping N/A N/A self N/A N/A N/A N/A N/A self _dsc damping N/A _set_damping N/A N/A self damping N/A N/A N/A N/A N/A self _dsc damping damping N/A N/A damping N/A property _get_damping _set_damping doc How soft to make the damping of the spring. N/A DampedRotarySpring N/A Constraint N/A N/A Like a damped spring, but works in an angular fashion __init__ N/A N/A self a b rest_angle stiffness damping N/A N/A N/A Like a damped spring, but works in an angular fashion. 
        
        :Parameters:
            rest_angle
                The relative angle in radians that the bodies want to have
            stiffness
                The spring constant (Young's modulus). 
            damping
                How soft to make the damping of the spring. 
         N/A N/A self _constraint N/A N/A cp cpDampedRotarySpringNew N/A a _body N/A b _body rest_angle stiffness damping N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _dsc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpDampedRotarySpring contents N/A N/A N/A self _set_bodies a b N/A _get_rest_angle N/A N/A self N/A N/A N/A N/A N/A self _dsc restAngle N/A _set_rest_angle N/A N/A self rest_angle N/A N/A N/A N/A N/A self _dsc restAngle rest_angle N/A N/A rest_angle N/A property _get_rest_angle _set_rest_angle doc The relative angle in radians that the bodies want to have _get_stiffness N/A N/A self N/A N/A N/A N/A N/A self _dsc stiffness N/A _set_stiffness N/A N/A self stiffness N/A N/A N/A N/A N/A self _dsc stiffness stiffness N/A N/A stiffness N/A property _get_stiffness _set_stiffness doc The spring constant (Young's modulus). _get_damping N/A N/A self N/A N/A N/A N/A N/A self _dsc damping N/A _set_damping N/A N/A self damping N/A N/A N/A N/A N/A self _dsc damping damping N/A N/A damping N/A property _get_damping _set_damping doc How soft to make the damping of the spring. _set_torque_func N/A N/A self func N/A N/A N/A Set the torque function
            
            func(self, relative_angle) -> torque
            
            Callback Parameters
                relative_angle : float
                    The relative angle
        
         _impl N/A N/A _ relative_angle N/A N/A N/A N/A func self relative_angle N/A N/A N/A self _torque_func_callback N/A N/A cp cpDampedRotarySpringTorqueFunc _impl N/A N/A N/A self _dsc springTorqueFunc N/A self _torque_func_callback N/A N/A torque_func N/A property fset _set_torque_func doc N/A _set_torque_func __doc__ N/A RotaryLimitJoint N/A Constraint N/A N/A Constrains the relative rotations of two bodies. __init__ N/A N/A self a b min max N/A N/A N/A Constrains the relative rotations of two bodies. min and max are 
        the angular limits in radians. It is implemented so that it's possible 
        to for the range to be greater than a full revolution.
         N/A N/A self _constraint N/A N/A cp cpRotaryLimitJointNew N/A a _body N/A b _body min max N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _rlc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpRotaryLimitJoint contents N/A N/A N/A self _set_bodies a b N/A _get_min N/A N/A self N/A N/A N/A N/A N/A self _rlc min N/A _set_min N/A N/A self min N/A N/A N/A N/A N/A self _rlc min min N/A N/A min N/A property _get_min _set_min _get_max N/A N/A self N/A N/A N/A N/A N/A self _rlc max N/A _set_max N/A N/A self max N/A N/A N/A N/A N/A self _rlc max max N/A N/A max N/A property _get_max _set_max N/A RatchetJoint N/A Constraint N/A N/A Works like a socket wrench. __init__ N/A N/A self a b phase ratchet N/A N/A N/A Works like a socket wrench. ratchet is the distance between 
        "clicks", phase is the initial offset to use when deciding where the 
        ratchet angles are.  
         N/A N/A self _constraint N/A N/A cp cpRatchetJointNew N/A a _body N/A b _body phase ratchet N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _dsc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpRatchetJoint contents N/A N/A N/A self _set_bodies a b N/A _get_angle N/A N/A self N/A N/A N/A N/A N/A self _dsc angle N/A _set_angle N/A N/A self angle N/A N/A N/A N/A N/A self _dsc angle angle N/A N/A angle N/A property _get_angle _set_angle _get_phase N/A N/A self N/A N/A N/A N/A N/A self _dsc phase N/A _set_phase N/A N/A self phase N/A N/A N/A N/A N/A self _dsc phase phase N/A N/A phase N/A property _get_phase _set_phase _get_ratchet N/A N/A self N/A N/A N/A N/A N/A self _dsc ratchet N/A _set_ratchet N/A N/A self ratchet N/A N/A N/A N/A N/A self _dsc ratchet ratchet N/A N/A ratchet N/A property _get_ratchet _set_ratchet N/A GearJoint N/A Constraint N/A N/A Keeps the angular velocity ratio of a pair of bodies constant. __init__ N/A N/A self a b phase ratio N/A N/A N/A Keeps the angular velocity ratio of a pair of bodies constant. 
        ratio is always measured in absolute terms. It is currently not 
        possible to set the ratio in relation to a third body's angular 
        velocity. phase is the initial angular offset of the two bodies.  
         N/A N/A self _constraint N/A N/A cp cpGearJointNew N/A a _body N/A b _body phase ratio N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _dsc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpGearJoint contents N/A N/A N/A self _set_bodies a b N/A _get_phase N/A N/A self N/A N/A N/A N/A N/A self _dsc phase N/A _set_phase N/A N/A self phase N/A N/A N/A N/A N/A self _dsc phase phase N/A N/A phase N/A property _get_phase _set_phase _get_ratio N/A N/A self N/A N/A N/A N/A N/A self _dsc ratio N/A _set_ratio N/A N/A self ratio N/A N/A N/A N/A N/A self _dsc ratio ratio N/A N/A ratio N/A property _get_ratio _set_ratio N/A SimpleMotor N/A Constraint N/A N/A Keeps the relative angular velocity of a pair of bodies constant. __init__ N/A N/A self a b rate N/A N/A N/A Keeps the relative angular velocity of a pair of bodies constant. 
        rate is the desired relative angular velocity. You will usually want 
        to set an force (torque) maximum for motors as otherwise they will be 
        able to apply a nearly infinite torque to keep the bodies moving.  
         N/A N/A self _constraint N/A N/A cp cpSimpleMotorNew N/A a _body N/A b _body rate N/A N/A self _ccontents N/A N/A self _constraint contents N/A N/A self _dsc N/A N/A N/A cp cast N/A self _constraint N/A N/A ct POINTER N/A cp cpSimpleMotor contents N/A N/A N/A self _set_bodies a b N/A _get_rate N/A N/A self N/A N/A N/A N/A N/A self _dsc rate N/A _set_rate N/A N/A self rate N/A N/A N/A N/A N/A self _dsc rate rate N/A N/A rate N/A property _get_rate _set_rate doc The desired relative angular velocity N/A