Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java503 protected float mVelocityX;
515 mVelocityX = x;
543 mPositionX += mVelocityX * tau;
659 return mVelocityX + polarX(relativeSpeed);
668 mVelocityX += polarX(thrust);
671 final float speed = pythag(mVelocityX, mVelocityY);
674 mVelocityX = mVelocityX * scale;
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java500 protected float mVelocityX; field in GameView.Sprite
512 mVelocityX = x; in setVelocity()
546 mPositionX += mVelocityX * tau; in step()
980 return mVelocityX + polarX(mBulletSpeed);
992 mVelocityX += polarX(thrust) * tau * mMaxSpeed / 4;
995 final float speed = pythag(mVelocityX, mVelocityY);
998 mVelocityX = mVelocityX * scale * scale;