Home
last modified time | relevance | path

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

/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java168 public void computePhysics(float sx, float sy, float dT) { in computePhysics() argument
173 mPosX += mVelX * dT + ax * dT * dT / 2; in computePhysics()
174 mPosY += mVelY * dT + ay * dT * dT / 2; in computePhysics()
176 mVelX += ax * dT; in computePhysics()
177 mVelY += ay * dT; in computePhysics()
234 final float dT = (float) (t - mLastT) / 1000.f /** (1.0f / 1000000000.0f)*/; in updatePositions() local
238 ball.computePhysics(sx, sy, dT); in updatePositions()