Beispiel #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)
Beispiel #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)
Beispiel #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)