Lines Matching refs:velocity
125 final Vector2 velocity = parentObject.getVelocity(); in shouldFall() local
126 if (velocity.y < FALL_SPEED_THRESHOLD) { in shouldFall()
137 final Vector2 velocity = parentObject.getVelocity(); in shouldJump() local
138 if (velocity.y > JUMP_SPEED_THRESHOLD) { in shouldJump()
148 final Vector2 velocity = parentObject.getVelocity(); in shouldRun() local
149 if (Math.abs(velocity.x) >= RUN_SPEED_THRESHOLD) { in shouldRun()
158 final Vector2 velocity = parentObject.getVelocity(); in shouldMove() local
161 if ((velocity.x < 0.0f && parentObject.touchingLeftWall()) in shouldMove()
162 || (velocity.x > 0.0f && parentObject.touchingRightWall())) { in shouldMove()
193 final Vector2 velocity = parentObject.getVelocity(); in idle() local
199 } else if (Math.abs(velocity.x) > 0.0f && shouldMove(parentObject)) { in idle()
219 final Vector2 velocity = parentObject.getVelocity(); in walk() local
225 } else if (Math.abs(velocity.x) > 0.0f) { in walk()
229 if (velocity.x > 0.0f) { in walk()
256 final Vector2 velocity = parentObject.getVelocity(); in run() local
262 } else if (Math.abs(velocity.x) > 0.0f) { in run()
267 if (velocity.x > 0.0f) { in run()
292 final Vector2 velocity = parentObject.getVelocity(); in shoot() local
294 if (velocity.x > 0.0f) { in shoot()
296 } else if (velocity.x < 0.0f) { in shoot()
303 final Vector2 velocity = parentObject.getVelocity(); in jumpStart() local
305 if (velocity.x > 0.0f) { in jumpStart()
307 } else if (velocity.x < 0.0f) { in jumpStart()
321 final Vector2 velocity = parentObject.getVelocity(); in jumpAir() local
324 if (Math.abs(velocity.x) > 0.0f) { in jumpAir()
335 if (velocity.x > 0.0f) { in jumpAir()
337 } else if (velocity.x < 0.0f) { in jumpAir()