Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java358 float tau = (currentStepTime - mLastStepTime) * 0.001f;
364 mShip.accelerate(tau, mMaxShipThrust, mMaxShipSpeed);
365 if (!mShip.step(tau)) {
373 if (!bullet.step(tau)) {
384 if (!obstacle.step(tau)) {
542 public boolean step(float tau) {
543 mPositionX += mVelocityX * tau;
544 mPositionY += mVelocityY * tau;
547 mDestroyAnimProgress += tau / getDestroyAnimDuration();
666 public void accelerate(float tau, float maxThrust, float maxSpeed) {
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java322 float tau = (currentStepTime - mLastStepTime) * 0.001f; in step() local
330 currentShip.accelerate(tau); in step()
331 if (!currentShip.step(tau)) { in step()
341 if (!bullet.step(tau)) { in step()
352 if (!obstacle.step(tau)) { in step()
545 public boolean step(float tau) { in step() argument
546 mPositionX += mVelocityX * tau; in step()
547 mPositionY += mVelocityY * tau; in step()
550 mDestroyAnimProgress += tau / getDestroyAnimDuration(); in step()
990 public void accelerate(float tau) {
[all …]