MCPcopy Create free account
hub / github.com/ActiveState/code / move

Method move

recipes/Python/502252_Physics/recipe-502252.py:109–113  ·  view source on GitHub ↗

Update the ball\'s position.

(self, frames_per_second)

Source from the content-addressed store, hash-verified

107 self.err -= e
108
109 def move(self, frames_per_second):
110 'Update the ball\'s position.'
111 self.vel += self.err
112 self.err = Vector(0, 0)
113 self.pos += self.vel / frames_per_second
114
115################################################################################
116

Callers 6

moveFunction · 0.45
updateFunction · 0.45
moveFunction · 0.45
updateFunction · 0.45
moveFunction · 0.45
updateFunction · 0.45

Calls 1

VectorClass · 0.70

Tested by

no test coverage detected