Home
last modified time | relevance | path

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

/external/replicaisland/src/com/replica/replicaisland/
DPlayerComponent.java174 float currentSpeed = parentObject.getVelocity().x; in move() local
175 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()