Lines Matching refs:velocity
69 // Minimum velocity that will be absorbed
71 // Maximum velocity, clamps at this value
259 * Call when the effect absorbs an impact at the given velocity.
266 * @param velocity Velocity at impact in pixels per second.
268 public void onAbsorb(int velocity) {
270 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY);
273 mDuration = 0.15f + (velocity * 0.02f);
275 // The glow depends more on the velocity, and therefore starts out
285 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f) / 2, 1.f);
288 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA));