Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java504 protected float mVelocityY;
516 mVelocityY = y;
544 mPositionY += mVelocityY * tau;
663 return mVelocityY + polarY(relativeSpeed);
669 mVelocityY += polarY(thrust);
671 final float speed = pythag(mVelocityX, mVelocityY);
675 mVelocityY = mVelocityY * scale;
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java501 protected float mVelocityY; field in GameView.Sprite
513 mVelocityY = y; in setVelocity()
547 mPositionY += mVelocityY * tau; in step()
970 return mVelocityY + polarY(mBulletSpeed);
993 mVelocityY += polarY(thrust) * tau * mMaxSpeed / 4;
995 final float speed = pythag(mVelocityX, mVelocityY);
999 mVelocityY = mVelocityY * scale * scale;