()
| 334 | return int(math.sin( (math.pi / float(bounceRate)) * currentBounce ) * bounceHeight) |
| 335 | |
| 336 | def getRandomVelocity(): |
| 337 | speed = random.randint(SQUIRRELMINSPEED, SQUIRRELMAXSPEED) |
| 338 | if random.randint(0, 1) == 0: |
| 339 | return speed |
| 340 | else: |
| 341 | return -speed |
| 342 | |
| 343 | |
| 344 | def getRandomOffCameraPos(camerax, cameray, objWidth, objHeight): |
no outgoing calls
no test coverage detected