Ejemplo n.º 1
0
 def apply_force(self, f, r):
     """Apply (accumulate) the force f on body with offset r. Both f and r 
     should be in world coordinates.
     
         f : (x,y) or `Vec2d`
             Force in world coordinates
         r : (x,y) or `Vec2d`
             Offset in world coordinates
     """
     cp.cpBodyApplyForce(self._body, f, r)
Ejemplo n.º 2
0
 def apply_force(self, f, r):
     """Apply (accumulate) the force f on body with offset r. Both f and r 
     should be in world coordinates."""
     cp.cpBodyApplyForce(self._body, f, r)
Ejemplo n.º 3
0
 def apply_force(self, f, r):
     """Apply (accumulate) the force f on body with offset r. Both f and r 
     should be in world coordinates."""
     cp.cpBodyApplyForce(self._body, f, r)