Home
last modified time | relevance | path

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

/external/replicaisland/src/com/replica/replicaisland/
DSimplePhysicsComponent.java44 float velocityX = parentObject.getVelocity().x + impulse.x; in update() local
56 if ((parentObject.touchingRightWall() && velocityX > 0.0f) in update()
57 || (parentObject.touchingLeftWall() && velocityX < 0.0f)){ in update()
58 velocityX = -velocityX * mBounciness; in update()
60 if (Utils.close(velocityX, 0.0f)) { in update()
61 velocityX = 0.0f; in update()
65 parentObject.getVelocity().set(velocityX, velocityY); in update()
DEnemyAnimationComponent.java65 final float velocityX = parentObject.getVelocity().x; in update() local
80 } else if (Math.abs(velocityX) > 0.0f) { in update()
90 if (!Utils.close(velocityX, 0.0f)) { in update()
91 if (velocityX < 0.0f && targetVelocityX < 0.0f) { in update()
93 } else if (velocityX > 0.0f && targetVelocityX > 0.0f) { in update()
101 } else if (Math.abs(velocityX) == 0.0f) { in update()
DAnimationComponent.java111 final float velocityX = parentObject.getVelocity().x; in update() local
217 if (Utils.close(velocityX, 0.0f, 30.0f)) { in update()
219 } else if (Math.abs(velocityX) > 300.0f) { in update()
240 if (Math.abs(velocityX) < 100.0f && velocityY > 10.0f) { in update()
242 } else if (Math.abs(velocityX) > 300.0f) { in update()
249 if (Utils.close(velocityX, 0.0f, 1.0f)) { in update()
251 } else if (Math.abs(velocityX) > 300.0f) { in update()
272 if (velocityX > 0.0f) { in update()
274 } else if (velocityX < 0.0f) { in update()
DLaunchProjectileComponent.java203 public final void setVelocityX(float velocityX) { in setVelocityX() argument
204 mVelocityX = velocityX; in setVelocityX()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/
DActivityFlinger.java129 … public boolean onFling(MotionEvent event1, MotionEvent event2, float velocityX, float velocityY) { in onFling() argument
134 && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { in onFling()
139 && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { in onFling()
144 return super.onFling(event1, event2, velocityX, velocityY); in onFling()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DWavePlotView.java565 float velocityX, float velocityY) { in onFling() argument
566 Log.d(DEBUG_TAG, "onFling: VelocityX: " + velocityX + " velocityY: " + velocityY); in onFling()
569 (int) (-velocityX * getZoom()), in onFling()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowGestureDetectorTest.java122 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DSubsamplingScaleImageView.java550 … public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in setGestureDetector()
551 …- e2.getX()) > 50 || Math.abs(e1.getY() - e2.getY()) > 50) && (Math.abs(velocityX) > 500 || Math.a… in setGestureDetector()
552 …PointF vTranslateEnd = new PointF(vTranslate.x + (velocityX * 0.25f), vTranslate.y + (velocityY * … in setGestureDetector()
558 return super.onFling(e1, e2, velocityX, velocityY); in setGestureDetector()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DConsoleActivity.java355 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onCreate()