private int getVelocitySegment(MovementInfo movementInfo)
	{
		this.timeSinceVelocityWasZero = movementInfo.speed == 8 ? 0 : this.timeSinceVelocityWasZero;
		return this.timeSinceVelocityWasZero >= MAX_HISTORY ? MAX_HISTORY-1 : this.timeSinceVelocityWasZero;
	}