コード例 #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)