Home | History | Annotate | Download | only in replicaisland

Lines Matching refs:newVelocity

75         Vector2 newVelocity = vectorPool.allocate(currentVelocity);
76 newVelocity.add(impulseVector);
78 if (newVelocity.length2() < inertiaSquared) {
86 if (touchingFloor && currentVelocity.y <= 0.0f && Math.abs(newVelocity.x) > 0.0f
101 if (maxFriction > Math.abs(newVelocity.x)) {
102 newVelocity.x = (0.0f);
104 newVelocity.x = (newVelocity.x
105 - (maxFriction * Utils.sign(newVelocity.x)));
109 if (Math.abs(newVelocity.x) < 0.01f) {
110 newVelocity.x = (0.0f);
113 if (Math.abs(newVelocity.y) < 0.01f) {
114 newVelocity.y = (0.0f);
120 parentObject.setVelocity(newVelocity);
121 parentObject.setTargetVelocity(newVelocity);
126 vectorPool.release(newVelocity);