예제 #1
0
파일: __init__.py 프로젝트: irskep/Gluball
 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)
예제 #2
0
파일: pymunk.py 프로젝트: kakila/cavemen
 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)
예제 #3
0
파일: pymunk.py 프로젝트: ezequielp/cavemen
 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)