Searched refs:currentSpeed (Results 1 – 1 of 1) sorted by relevance
174 float currentSpeed = parentObject.getVelocity().x; in move() local175 final float newSpeed = Math.abs(currentSpeed + impulse.x); in move()177 if (Math.abs(currentSpeed) < maxHorizontalSpeed) { in move()178 currentSpeed = maxHorizontalSpeed * Utils.sign(impulse.x); in move()179 parentObject.getVelocity().x = (currentSpeed); in move()194 if (Math.abs(currentSpeed) > maxHorizontalSpeed) { in move()195 float postDragSpeed = currentSpeed - in move()196 (AIR_DRAG_SPEED * timeDelta * Utils.sign(currentSpeed)); in move()197 if (Utils.sign(currentSpeed) != Utils.sign(postDragSpeed)) { in move()