Lines Matching refs:velocity
155 static const int VELOCITY_HISTORY_MAX = 10; // # recent velocity samples used to calculate average
188 float swaySensitivity; // how much to rotate cards in relation to the rotation velocity
236 static float velocity = 0.0f; // angular velocity in radians/s
673 float swayAngle = getSwayAngleForVelocity(velocity, enableSway);
1142 enableSelection = fabs(velocity) < selectionVelocity;
1143 velocity = 0.0f;
1198 velocity = computeAverageVelocityFromHistory();
1199 if (fabs(velocity) > stopVelocity) {
1251 velocity = computeAverageVelocityFromHistory();
1317 velocity = 0.0f;
1586 const float Ff = -frictionCoeff * velocity;
1601 // compute velocity
1602 const float momentum = mass * velocity + (Ff + Fr)*dt;
1603 velocity = momentum / mass;
1604 bias += velocity * dt;
1606 return fabs(velocity) > stopVelocity;
1639 velocity = 0.0f;
1647 velocity = 0.0f; // prevent bouncing due to v > 0 after overscroll animation.