Esempio 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)
Esempio 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)
Esempio 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)