Home
last modified time | relevance | path

Searched refs:ball (Results 1 – 1 of 1) sorted by relevance

/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java221 mBalls[i].setBackgroundResource(R.drawable.ball); in ParticleSystem()
237 Particle ball = mBalls[i]; in updatePositions() local
238 ball.computePhysics(sx, sy, dT); in updatePositions()
269 Particle ball = mBalls[j]; in update() local
270 float dx = ball.mPosX - curr.mPosX; in update()
271 float dy = ball.mPosY - curr.mPosY; in update()
289 ball.mPosX += effectX; in update()
290 ball.mPosY += effectY; in update()