Guest User

Untitled

a guest
Jul 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. ## velocity
  2. def get_velocity(self):
  3. return ( (self.dx, self.dy) )
  4. def set_velocity (self, new_velocity):
  5. self.dx, self.dy = new_velocity
  6. velocity = property(get_velocity, set_velocity)
  7.  
  8. self.get_velocity() = lala
  9. lala[1] = dx value and lala[2] = dy value
  10.  
  11. lala = self.get_velocity()
  12.  
  13. dx, dy = self.get_velocity()
  14.  
  15. d = self.get_velocity()
  16. dx = d[0]
  17. dy = d[1]
Add Comment
Please, Sign In to add comment